cibernox / ember-native-dom-helpers

Test helpers for your integration tests that fire native events
MIT License
186 stars 37 forks source link

Use typescript #14

Open cibernox opened 7 years ago

cibernox commented 7 years ago

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?

rwjblue commented 7 years ago

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.

pixelhandler commented 7 years ago

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

pixelhandler commented 7 years ago

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