/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v16.13.1
scripts/flow/environment.js
61 строка
1 KB
Nicolas Gallagher
Update to flow-bin@0.89 (#17842)
22 янв 2020, 21:02
Не верифицирован
22 янв 2020, 21:02
6c00c5b
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* eslint-disable */ declare var __PROFILE__: boolean; declare var __UMD__: boolean; declare var __EXPERIMENTAL__: boolean; declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{ inject: ?((stuff: Object) => void) };*/ declare module 'create-react-class' { declare var exports: React$CreateClass; } declare var trustedTypes: {| isHTML: (value: any) => boolean, isScript: (value: any) => boolean, isScriptURL: (value: any) => boolean, // TrustedURLs are deprecated and will be removed soon: https://github.com/WICG/trusted-types/pull/204 isURL?: (value: any) => boolean, |}; // ReactFeatureFlags www fork declare module 'ReactFeatureFlags' { declare module.exports: any; } // ReactFiberErrorDialog www fork declare module 'ReactFiberErrorDialog' { declare module.exports: {showErrorDialog: (error: mixed) => boolean, ...}; } // EventListener www fork declare module 'EventListener' { declare module.exports: { listen: ( target: Element, type: string, callback: Function, priority?: number, options?: {passive: boolean, ...}, ) => mixed, capture: (target: Element, type: string, callback: Function) => mixed, captureWithPassiveFlag: ( target: Element, type: string, callback: Function, passive: boolean, ) => mixed, ... }; }