ember-native-dom-helpers icon indicating copy to clipboard operation
ember-native-dom-helpers copied to clipboard

Use typescript

Open cibernox opened this issue 8 years ago • 3 comments

The more I use VSCode the more I value the little helps that the type definitions (even those defined externally like momentjs / lodash).

Although Ember's flexibility limit the effectiveness of types, this barely relies in Ember. Many of the arguments and return types (e.g NodeList) can be known in advance.

It is possible to develop addons in typescript already? Shall we?

cibernox avatar Feb 24 '17 15:02 cibernox

Yes, we can. Seems fine to start experimenting.

The basic tldr; is that we need to add ember-cli-typescript to the repo, and start converting.

rwjblue avatar Feb 24 '17 15:02 rwjblue

Per @robbiepitts ... FWIW, this is a good resource for TS compilation: https://github.com/glimmerjs/glimmer-build/blob/master/index.js

pixelhandler avatar Mar 10 '17 15:03 pixelhandler

@danielchappell let me know if you have any ideas on getting TS to work in an addon.

pixelhandler avatar Mar 23 '17 22:03 pixelhandler