proxymise
proxymise copied to clipboard
Document how to use with type systems TypeScript/ Flowtype
It is unclear how to define types for proxymissed promises.
Providing these guidelines would encourage broader pattern adoption.
Related: https://github.com/kozhevnikov/proxymise/pull/8
Now there is a @types/proxymise package to have correct typings:
import proxymise from 'proxymise';
function example(): ReturnType<typeof proxymise> {
return proxymise(foo);
}