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
export function task(target: Object, propertyKey: string): void;
Why does the editor think that this definition is the correct one to use. While this first param is a hash (Object), the second param is a function, not a string.
Do not know enough about type script and all the definitions. Posting here thinking that there may be something incomplete in the index.d.ts that is leading the editor astray.
Looking at the code all the comments above are showing the decorator. Is there something more in the typescript defs that are needed to convert the use a decorator to the new syntax?
The text was updated successfully, but these errors were encountered:
The new way to define a task is
The return value from the task function is assigned to waitAFewSeconds
However the intellij editor is reading the task function is defined at https://github.com/machty/ember-concurrency/blob/master/packages/ember-concurrency/src/index.d.ts#L849 as returning a void
Why does the editor think that this definition is the correct one to use. While this first param is a hash (Object), the second param is a function, not a string.
Do not know enough about type script and all the definitions. Posting here thinking that there may be something incomplete in the
index.d.ts
that is leading the editor astray.If you remove the options
{ drop: true}
the editor thinks it is the definition here https://github.com/machty/ember-concurrency/blob/master/packages/ember-concurrency/src/index.d.ts#L841 which does not return a void, but I do not know why it chooses this one either.Looking at the code all the comments above are showing the decorator. Is there something more in the typescript defs that are needed to convert the use a decorator to the new syntax?
The text was updated successfully, but these errors were encountered: