machty / ember-concurrency

ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
http://ember-concurrency.com
MIT License
690 stars 157 forks source link

No type definitions for `linked` and `unlinked` methods #366

Closed omarhamdan closed 4 years ago

omarhamdan commented 4 years ago

Looking here there doesn't to be type support for linked/unlinked methods.

Below is an example of my use case. linked does not exist on the type returned by taskFor since it relies on the TaskForEncapsulatedTaskDescriptor which extends AbstractTask eventually.

@task
async parentTask() {
  await taskFor(this.childTask).linked().perform()
}