Fun Fact: The core NativeScript team uses TypeScript to build the NativeScript framework.
Using TypeScript with NativeScript is easy. From your terminal or command line, just start a new project with this command:
$ tns create my-app-name --template typescript
Adding TypeScript support to an existing NativeScript project is easy, too. Just run this command in your existing project root directory:
$tns install typescript
NativeScript is built with TypeScript. It’s not an afterthought, it’s how the code is written. That means there is 100% integration with all NativeScript APIs and even all native APIs when you use TypeScript.
Combined with Visual Studio Code, TypeScript gives you powerful intellisense for your NativeScript projects. That means that you can see all available APIs, methods and properties right where you need them - inline with your code and not stuffed somewhere in the docs.
Combined with Visual Studio Code, TypeScript gives you powerful refactoring capabilities. You can change a method/property signature in seconds without worrying that the old name will stay somewhere in the project. This is one of the reasons we decided to use for NativeScript - a large scale project.
NativeScript CLI configures your .tsconfig files and transpiles your .ts files for you without any extra build configuration required. Just build your project and NativeScript CLI will handle the rest.