It is possible to use TypeScript when writing code for components and services inside Web Package projects,
here are the steps to follow
Add the steps involved:
Include in your "ts" files the type definitons for Angularjs; you can download this from angular typings file, and include it in you project, then add the
following line in your "ts" file, at the top :
/// <reference path="../angularjs/angular.d.ts" /> |
make sure you set the correct path to the type definiton file