Installation
You can simply ember install the dependency like normal:
ember install ember-cli-typescript@latestAll dependencies will be added to your package.json, and you're ready to roll!
If you're upgrading from a previous release, see (./upgrade-notes.md).
Installing ember-cli-typescript modifies your project in two ways:
installing a number of other packages to make TypeScript work in your app or addon
generating a number of files in your project
Other packages this addon installs
We install all of the following packages at their current "latest" value, :
typescriptember-cli-typescript-blueprints@types/ember@types/ember-data@types/ember__*–@types/ember__objectfor@ember/objectetc.@types/ember-data__*–@types/ember-data__modelfor@ember-data/modeletc.@types/rsvp
Files this addon generates
We also add the following files to your project:
types/<app name>/index.d.ts– the location for any global type declarations you need to write for you own application; see Using TS Effectively: Global types for your package for information on its default contents and how to use it effectivelyapp/config/environment.d.ts– a basic set of types defined for the contents of theconfig/environment.jsfile in your app; see Environment and configuration typings for details
Last updated
Was this helpful?