Skip to content

Commit 85c1ef4

Browse files
committed
Add notes on installing other types.
1 parent 5b131bf commit 85c1ef4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Use TypeScript in your Ember 2.x and 3.x apps!
1010
* [`tsconfig.json`](#tsconfigjson)
1111
* [Using TypeScript with Ember effectively](#using-typescript-with-ember-effectively)
1212
* [Incremental adoption](#incremental-adoption)
13+
* [Install other types!](#install-other-types)
1314
* [Environment configuration typings](#environment-configuration-typings)
1415
* [Service and controller injections](#service-and-controller-injections)
1516
* [Opt-in unsafety for Ember Data lookups](#opt-in-unsafety-for-ember-data-lookups)
@@ -102,6 +103,15 @@ You may find the blog series ["Typing Your Ember"][typing-your-ember] helpful as
102103

103104
[typing-your-ember]: http://www.chriskrycho.com/typing-your-ember.html
104105

106+
### Install other types!
107+
108+
You'll want to use other type definitions as much as possible. The first thing you should do, for example, is install the types for your testing framework of choice: `@types/ember-mocha` or `@types/ember-qunit`. Beyond that, look for types from other addons: it will mean writing `any` a lot less and getting a lot more help both from your editor and from the compiler.
109+
110+
To make this easier, we're maintaining [a list of addons with known type definitions][known-typings] either on [Definitely Typed] or as part of the addon itself. (If you know of typings that aren't in that list, please open a pull request to add them!)
111+
112+
[known-typings]: ./known-typings.md
113+
[definitely typed]: https://github.com/DefinitelyTyped/DefinitelyTyped
114+
105115
### Environment configuration typings
106116

107117
Along with the @types/ files mentioned above, ember-cli-typescript adds a starter interface for `config/environment.js` in `config/environment.d.ts`. This interface will likely require some changes to match your app.

0 commit comments

Comments
 (0)