diff --git a/flow-typed/npm/promise_v8.x.x.js b/flow-typed/npm/promise_v8.x.x.js index bdb0f5a0e02..f7eb92e4d12 100644 --- a/flow-typed/npm/promise_v8.x.x.js +++ b/flow-typed/npm/promise_v8.x.x.js @@ -4,15 +4,15 @@ */ declare module 'promise/setimmediate/es6-extensions' { - declare module.exports: Class; + declare module.exports: typeof Promise; } declare module 'promise/setimmediate/done' { - declare module.exports: Class; + declare module.exports: typeof Promise; } declare module 'promise/setimmediate/finally' { - declare module.exports: Class; + declare module.exports: typeof Promise; } declare module 'promise/setimmediate/rejection-tracking' { diff --git a/jest/preprocessor.js b/jest/preprocessor.js index 7e8ed8de0ea..e9d12710ddf 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -101,6 +101,7 @@ module.exports = { return generate( ast, + // $FlowFixMe[prop-missing] Error found when improving flow typing for libs { code: true, comments: false,