This guide is designed to help you get up and running with TypeScript in an Ember app.
This is not an introduction to TypeScript or Ember. Throughout this guide, we'll link back to the TypeScript docs and to other sections of the Ember Guides when there are specific concepts that we will not explain here but which are important for understanding what we're covering!
Not sure where to get started? Here's an overview of the content within:
- If you're totally new to using TypeScript with Ember, start with Core Concepts: TypeScript and Ember.
- To create a new Ember app or addon with TypeScript, check out Getting Started with TypeScript and Building Addons in TypeScript.
- If you're looking to convert an existing Ember app to TypeScript, check out Converting an Existing Ember App to TypeScript.
- If you're working with legacy (pre-Octane) Ember and TypeScript together, you should read TypeScript and Ember Classic.
- Not ready to switch to TypeScript? You can get many of TypeScript's benefits by adding types with JSDoc comments. We'll talk a bit about this over in the Signatures section.
- Looking for type-checking in Ember templates? Check out Glint.
What is TypeScript, and why should you adopt it?
TypeScript lets you build ambitious web applications with confidence—so it's a perfect fit for Ember apps!
- Get rid of
undefined is not a functionand
null is not an objectonce and for all.
- Enjoy API docs… that are always up-to-date.
- Experience better developer productivity through top-notch editor support, including incredible autocomplete, guided refactoring, automatic imports, and more.