Enable typescript preprocessing on Ember 2.x apps.
To use install dependencies
npm install --save-dev [email protected] # Older versions are not supported
npm install --save-dev ember-cli-typify
npm install --save-dev github:winding-lines/at-types-ember
Create a tsconfig.json file:
ember generate ember-cli-typify
Rename the files you want to check from .js to .ts
Create the file .vscode/settings.json
with the following content:
// Place your settings in this file to overwrite default and user settings.
{
"typescript.tsdk" : "node_modules/typescript/lib"
}