Summary: _typescript_ Reviewed By: passy Differential Revision: D16762117 fbshipit-source-id: b6ee32e0bb3fc686fc69cfccab703e2ef4989571
34 lines
804 B
TypeScript
34 lines
804 B
TypeScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
import {StoreEnhancerStoreCreator} from 'redux';
|
|
|
|
export {};
|
|
type RequestIdleHandle = number;
|
|
|
|
declare global {
|
|
interface Window {
|
|
__REDUX_DEVTOOLS_EXTENSION__: undefined | StoreEnhancerStoreCreator;
|
|
|
|
Flipper: {
|
|
init: () => void;
|
|
};
|
|
|
|
// rIC not supportedin TS: https://github.com/Microsoft/TypeScript/issues/21309
|
|
requestIdleCallback: (
|
|
callback: (deadline: {
|
|
didTimeout: boolean;
|
|
timeRemaining: () => number;
|
|
}) => void,
|
|
opts?: {
|
|
timeout: number;
|
|
},
|
|
) => RequestIdleHandle;
|
|
cancelIdleCallback: (handle: RequestIdleHandle) => void;
|
|
}
|
|
}
|