Declare your injections, or risk losing them!

When using Ember + TypeScript, the recommendation thus far for service injections has been to mark them as definite with ! (since they are not initialized in the class, but by the service injection decorator), e.g. import { inject as service } from '@ember/service'; export default class MyComponent extends Component…

Using ember-concurrency with TypeScript

ember-concurrency [https://github.com/machty/ember-concurrency] is an amazing tool for managing asynchronous tasks in Ember applications. Until recently, the TypeScript story for ember-concurrency has not been great with no official types, problems with type-safety, and reliance on a proof-of-concept only available in an alpha release. Recent work by Godfrey…