Closed phpnode closed 8 years ago
Work in progress.
Async functions should allow Promise<T> as their annotation as well as T. Right now we're incompatible with flow which only allows Promise<T>.
Promise<T>
T
As part of this we should also allow returning instances of Promise, probably via a check for .then() rather than instanceof.
Promise
.then()
instanceof
ping @tp
Async functions should allow
Promise<T>
as their annotation as well asT
. Right now we're incompatible with flow which only allowsPromise<T>
.As part of this we should also allow returning instances of
Promise
, probably via a check for.then()
rather thaninstanceof
.ping @tp