From d5689b959a56e719ca6db9abf3d0c4d4db9aa914 Mon Sep 17 00:00:00 2001 From: Xuan Huang Date: Tue, 19 Oct 2021 11:29:19 -0700 Subject: [PATCH] Inherit type of queueMicrotask from Flow Summary: Changelog: [Internal] Now that Flow releases include a type def of `queueMicrotask`, we can just inherit it from Flow Reviewed By: yungsters Differential Revision: D31754482 fbshipit-source-id: f42f8ec955f898d7a964ff85b6061d4840590d4d --- flow/global.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flow/global.js b/flow/global.js index b2e76fe8d23271..3d5166f9ca8230 100644 --- a/flow/global.js +++ b/flow/global.js @@ -49,11 +49,7 @@ declare var global: { +requestIdleCallback: typeof requestIdleCallback, +cancelIdleCallback: typeof cancelIdleCallback, +setTimeout: typeof setTimeout, - // TODO(T97509743): use `typeof` when the next Flow release is available. - +queueMicrotask: >( - jobCallback: (...args: TArguments) => mixed, - ) => void, - + +queueMicrotask: typeof queueMicrotask, +console: typeof console, // JavaScript environments specific