mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Switch to declare module.exports syntax
Reviewed By: gabelevi Differential Revision: D6571796 fbshipit-source-id: 6a6d98b05953f40b825a260f44765689e91269a8
This commit is contained in:
committed by
Facebook Github Bot
parent
f4d627c8fa
commit
5f8d8e90c2
@@ -24,5 +24,5 @@ declare var Headers: any;
|
||||
declare var Request: any;
|
||||
declare var Response: any;
|
||||
declare module requestAnimationFrame {
|
||||
declare var exports: (callback: any) => any;
|
||||
declare module.exports: (callback: any) => any;
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@ declare module "Map" {
|
||||
|
||||
// Don't "declare class exports" directly, otherwise in error messages our
|
||||
// show up as "exports" instead of "Map" or "MapPolyfill".
|
||||
declare var exports: typeof MapPolyfill;
|
||||
declare module.exports: typeof MapPolyfill;
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@ declare module "Set" {
|
||||
|
||||
// Don't "declare class exports" directly, otherwise in error messages our
|
||||
// show up as "exports" instead of "Set" or "SetPolyfill".
|
||||
declare var exports: typeof SetPolyfill;
|
||||
declare module.exports: typeof SetPolyfill;
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
// TODO (acdlite) Remove this file once flowtype/flow-typed/pull/773 is merged
|
||||
|
||||
declare module 'create-react-class' {
|
||||
declare var exports: React$CreateClass;
|
||||
declare module.exports: React$CreateClass;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user