You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS Definition not accepting
Argument of type '"someTask"' is not assignable to parameter of type 'never'.ts(2345)
import { on } from '@ember-decorators/object';
import { inject as service } from '@ember-decorators/service';
import Component from '@ember/component';
import { TaskInstance } from 'ember-concurrency';
import { lastValue, task } from 'ember-concurrency-decorators';
import StuffCollection from '../models/stuffs/stuff-collection';
export default class Thing extends Component {
@service('store')
store: any;
@on('init')
getProjects () {
//@ts-ignore https://github.com/machty/ember-concurrency-decorators/issues/30
this.getStuffTask.perform();
}
@task
*getStuffTask(): IterableIterator<TaskInstance<Promise<StuffCollection>>> {
const projects = yield this.store.queryRecord('stuff', {});
return projects;
}
@lastValue('getStuffTask') // error here `Argument of type '"someTask"' is not assignable to parameter of type 'never'.ts(2345)`
collection?: StuffCollection;
}
The text was updated successfully, but these errors were encountered:
TS Definition not accepting
Argument of type '"someTask"' is not assignable to parameter of type 'never'.ts(2345)
The text was updated successfully, but these errors were encountered: