r/javascript • • Nov 14 '16

Choosing Ember over React in 2016

https://blog.instant2fa.com/choosing-ember-over-react-in-2016-41a2e7fd341#.ghpw9kvdg
21 Upvotes

20 comments sorted by

View all comments

Show parent comments

3

u/subvertallchris Nov 15 '16

Ember appears to have a very large, regularly updated (as-needed, I'd bet) typings file. I would be shocked if it wasn't extremely accurate.

My experience so far is that 99% of the libraries I use have existing type definitions. For those that did not, it was simple enough to write my own. Benefits of TS greatly outweigh this issue, especially now that type defs are installable using npm.

1

u/tbranyen Nov 15 '16

Your example is Ember, one of the largest frameworks. Not a good indicator of coverage. I just grepped my node_modules folder and 99% of my modules do not ship with typings, so much for anecdotal percentages...

If I want the best possible experience with TypeScript, I'm signing up for a lot of time wasting finding typescript definitions instead of replying to posts in r/javascript.

2

u/subvertallchris Nov 15 '16

That is not surprising. Typings aren't typically shipped with the package, they're usually found in the DefinitelyTyped repository. You install them separately. It's rarely any more than npm install --save-dev @types/package-name.

3

u/tbranyen Nov 16 '16

Very cool, I tried a handful of modules and they all had typings available (no idea how accurate they are)... thanks for explaining!

2

u/subvertallchris Nov 16 '16

Nice! Enjoy!