kozhevnikov / proxymise

Chainable Promise Proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document how to use with type systems TypeScript/ Flowtype

gajus opened this issue · comments

It is unclear how to define types for proxymissed promises.

Providing these guidelines would encourage broader pattern adoption.

Now there is a @types/proxymise package to have correct typings:

import proxymise from 'proxymise';

function example(): ReturnType<typeof proxymise> {
       return proxymise(foo);
}