Skip to content

Typescript #421

@rhg1968

Description

@rhg1968

This is a question about using typescript with Nativescript. I created the hello world example and it worked correctly, but I wanted to see how it would work with typescript. I decided to change the main-page.js to main-page.ts. This broke the application and the taps that were being counted on the screen now show with just the binding expression {{message}}. I even tried changing the the new ts file to use import and export typescript functions without any luck.

Does the CLI automatically compile the ts files into javascript ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions