From 29dce56b9057885b8f7a41262c0c521a583f6108 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Wed, 7 Dec 2016 12:59:46 -0800 Subject: [PATCH] Remove requestIdleCallback/cancelIdleCallback flow lib Summary: As of flow 0.36.0, `requestIdleCallback` and `cancelIdleCallback` are part of the builtin lib defs. https://github.com/facebook/flow/pull/2800 Reviewed By: yungsters Differential Revision: D4280306 fbshipit-source-id: 30328675c7dbfe12f603321f1196c87800a19ba8 --- flow/global.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 flow/global.js diff --git a/flow/global.js b/flow/global.js deleted file mode 100644 index 7e13ef048..000000000 --- a/flow/global.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @flow - * @nolint - */ - -/* eslint-disable */ - -// Add missing flow definitions, can be removed when included in flow. -declare function requestIdleCallback(callback: any): number; -declare function cancelIdleCallback(idleCallbackId: ?number): void;