Files
flipper/types/globals.tsx
Viktor Patrushev f3691bec7b Converted QPL plugin to TypeScript
Summary: Converted QPL plugin to TypeScript

Reviewed By: danielbuechele

Differential Revision: D17184095

fbshipit-source-id: 2a841bd8bc746cab70e6a03b0ccc8ffbdbda43c6
2019-09-10 04:12:26 -07:00

36 lines
891 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';
import {ResizeObserver} from './ResizeObserver.d';
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;
ResizeObserver: ResizeObserver;
}
}