TypeScript Support for EmberJS, AngularJS, or BatmanJS

Whether TypeScript will support any of these large MV * frameworks.

I know it's too early to ask about it, but what about the chances of getting support with this young javascript initiative?

+7
source share
4 answers

TypeScript already supports these and all other JavaScript libraries. Any JavaScript code is valid TypeScript code.

Obviously, to view any of the benefits of TypeScript for these libraries, you need to add type annotations, this can be done unobtrusively by creating source files (files with the extension .d.ts ). These are basically header files that describe type information associated with existing JavaScript code.

Obviously, outside the TypeScript project, these source declaration files are created for each popular JavaScript library. These projects and the community can contribute to this.

You can view a sample source declaration file for jQuery , which is included in TypeScript samples.

+12
source

DefinitelyTyped has already covered most (if not all) mv * javascript frameworks. They have definitions for angularjs, spine, ember, knockout and more. Check this.

+11
source
  • All JavaScript TypeScript.
  • MV * Structures are JavaScript.
  • Therefore, the framework is MV * TypeScript.
+6
source

Here is an interesting article on TypeScript and AngularJS

http://www.piotrwalat.net/using-typescript-with-angularjs-and-web-api/

+4
source

All Articles