ember-cli-typescript
  • ember-cli-typescript
  • Installation
  • Configuration
  • TypeScript and Ember
    • Using TypeScript With Ember Effectively
    • Decorators
    • Current limitations
    • Building Addons in TypeScript
    • Understanding the @types Package Names
  • Working With Ember
    • Components
    • Services
    • Routes
    • Controllers
    • Helpers
    • Testing
  • Working With Ember Data
    • Models
    • Transforms
  • Cookbook
    • Working with route models
  • Working With Ember Classic
    • EmberComponent
    • Mixins
    • Computed Properties
    • EmberObject
  • Upgrading from 1.x
  • Troubleshooting
    • Conflicting Type Dependencies
Powered by GitBook
On this page
  • Other packages this addon installs
  • Files this addon generates

Was this helpful?

Edit on GitHub
Export as PDF

Installation

You can simply ember install the dependency like normal:

ember install ember-cli-typescript@latest

All 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, :

  • typescript

  • ember-cli-typescript-blueprints

  • @types/ember

  • @types/ember-data

  • @types/ember__* – @types/ember__object for @ember/object etc.

  • @types/ember-data__* – @types/ember-data__model for @ember-data/model etc.

  • @types/rsvp

Files this addon generates

We also add the following files to your project:

Previousember-cli-typescriptNextConfiguration

Last updated 2 years ago

Was this helpful?

types/<app name>/index.d.ts – the location for any global type declarations you need to write for you own application; see for information on its default contents and how to use it effectively

app/config/environment.d.ts – a basic set of types defined for the contents of the config/environment.js file in your app; see for details

tsconfig.json
Using TS Effectively: Global types for your package
Environment and configuration typings