Skip to content

Commit

Permalink
Inherit type of queueMicrotask from Flow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Huxpro authored and facebook-github-bot committed Oct 19, 2021
1 parent 288ca22 commit d5689b9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions flow/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: <TArguments: Array<mixed>>(
jobCallback: (...args: TArguments) => mixed,
) => void,

+queueMicrotask: typeof queueMicrotask,
+console: typeof console,

// JavaScript environments specific
Expand Down

0 comments on commit d5689b9

Please sign in to comment.