diff --git a/flow/Promise.js b/flow/Promise.js index a85abea26e30a2..4f6fb3971eebcb 100644 --- a/flow/Promise.js +++ b/flow/Promise.js @@ -33,6 +33,12 @@ declare class Promise<+R> { static race(promises: Array>): Promise; // Non-standard APIs + + // See https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/__forks__/Promise.native.js#L21 + finally( + onFinally?: ?(value: any) => Promise | U + ): Promise; + done( onFulfill?: ?(value: R) => mixed, onReject?: ?(error: any) => mixed