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
Is it feasible to provide a type for waitFor that is compatible with Ember's runloop functions?
Looking to do something like:
schedule('afterRender',waitFor(async()=>{…}))
However this currently throws a type error:
Argument of type 'Function' is not assignable to parameter of type 'AnyFn'.
Type 'Function' provides no match for the signature '(...args: any[]): unknown'. ts(2345)
Adding this function override appears to minimally be enough to clear up the issue:
Is it feasible to provide a type for
waitFor
that is compatible with Ember's runloop functions?Looking to do something like:
However this currently throws a type error:
Adding this function override appears to minimally be enough to clear up the issue:
A possibly more robust solution:
The text was updated successfully, but these errors were encountered: