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
691 stars 157 forks source link

Module '"ember-concurrency"' has no exported member 'lastValue' #404

Closed oo6 closed 3 years ago

oo6 commented 3 years ago

I'm using typescript in ember. And when following the 2.0.0 upgrade guide, I replace ember-concurrency-decorators imports with ember-concurrency.

- import { lastValue } from 'ember-concurrency-decorators';
+ import { lastValue } from 'ember-concurrency';

I got:

error TS2305: Module '"ember-concurrency"' has no exported member 'lastValue'.
maxfierke commented 3 years ago

Hi @oo6 , thanks for the heads up! We definitely do export it (https://github.com/machty/ember-concurrency/blob/471864952ecba19c1199e8cfbbab4dce71d231b0/addon/index.js#L55) but it seems we're missing it from the TypeScript definitions. Will get those updated, thanks!