From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/fbjs/lib/Deferred.js.flow | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node_modules/fbjs/lib/Deferred.js.flow') diff --git a/node_modules/fbjs/lib/Deferred.js.flow b/node_modules/fbjs/lib/Deferred.js.flow index aaad67b5c..16aa3429f 100644 --- a/node_modules/fbjs/lib/Deferred.js.flow +++ b/node_modules/fbjs/lib/Deferred.js.flow @@ -48,15 +48,15 @@ class Deferred { this._reject(reason); } - catch(): Promise { + catch(onReject?: ?(error: any) => mixed): Promise { return Promise.prototype.catch.apply(this._promise, arguments); } - then(): Promise { + then(onFulfill?: ?(value: any) => mixed, onReject?: ?(error: any) => mixed): Promise { return Promise.prototype.then.apply(this._promise, arguments); } - done(): void { + done(onFulfill?: ?(value: any) => mixed, onReject?: ?(error: any) => mixed): void { // Embed the polyfill for the non-standard Promise.prototype.done so that // users of the open source fbjs don't need a custom lib for Promise const promise = arguments.length ? this._promise.then.apply(this._promise, arguments) : this._promise; -- cgit v1.2.3