2016-05-04 05:37:13 +08:00
|
|
|
/**
|
2018-09-08 06:11:23 +08:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-05-04 05:37:13 +08:00
|
|
|
*
|
2017-09-25 04:48:13 +08:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-05-04 05:37:13 +08:00
|
|
|
*
|
|
|
|
|
* @flow
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
|
2018-06-12 04:16:27 +08:00
|
|
|
declare var __PROFILE__: boolean;
|
2018-09-02 03:00:00 +08:00
|
|
|
declare var __UMD__: boolean;
|
2018-06-12 04:16:27 +08:00
|
|
|
|
2016-05-04 05:37:13 +08:00
|
|
|
declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{
|
|
|
|
|
inject: ?((stuff: Object) => void)
|
2017-10-17 21:20:00 +08:00
|
|
|
};*/
|
2017-11-06 22:14:48 +08:00
|
|
|
|
2017-12-01 01:57:13 +08:00
|
|
|
// ReactFeatureFlags www fork
|
2017-11-06 22:14:48 +08:00
|
|
|
declare module 'ReactFeatureFlags' {
|
|
|
|
|
declare module.exports: any;
|
|
|
|
|
}
|
2017-12-01 01:57:13 +08:00
|
|
|
|
|
|
|
|
// ReactFiberErrorDialog www fork
|
|
|
|
|
declare module 'ReactFiberErrorDialog' {
|
|
|
|
|
declare module.exports: {
|
|
|
|
|
showErrorDialog: (error: mixed) => boolean,
|
|
|
|
|
};
|
|
|
|
|
}
|
2017-12-08 06:28:59 +08:00
|
|
|
|
|
|
|
|
// EventListener www fork
|
|
|
|
|
declare module 'EventListener' {
|
|
|
|
|
declare module.exports: {
|
2019-03-15 17:39:43 +08:00
|
|
|
listen: (
|
|
|
|
|
target: Element,
|
|
|
|
|
type: string,
|
|
|
|
|
callback: Function,
|
|
|
|
|
priority?: number,
|
|
|
|
|
options?: {passive: boolean},
|
|
|
|
|
) => mixed,
|
2017-12-08 06:28:59 +08:00
|
|
|
capture: (target: Element, type: string, callback: Function) => mixed,
|
2019-04-30 18:40:45 +08:00
|
|
|
captureWithPassiveFlag: (
|
|
|
|
|
target: Element,
|
|
|
|
|
type: string,
|
|
|
|
|
callback: Function,
|
|
|
|
|
passive: boolean,
|
|
|
|
|
) => mixed,
|
2017-12-08 06:28:59 +08:00
|
|
|
};
|
|
|
|
|
}
|