From 5292aee60d623e6fb3b83ac53a2c7ea3735b8625 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Wed, 6 Dec 2017 16:00:30 -0600 Subject: [PATCH] fix(promisifyExecMethod): fix flow error --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4ac781f..cd34935 100644 --- a/src/index.js +++ b/src/index.js @@ -75,7 +75,7 @@ function promisifyExecMethod(method: any): any { } }) }) - return (Object.create(child, { + return (Object.create((child: any), { then: { value: _promise.then.bind(_promise) }, catch: { value: _promise.catch.bind(_promise) }, }): any)