mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-28 20:34:52 +08:00
[fix] Flow type checking and annotations
Fixes dozens of Flow errors; adds type annotations; marks more files for Flow type checking. Fixes a bug in 'AppState'. 15 Flow errors remaining. Several React Native files are still not type checked (e.g., PanResponder, Touchables) Ref #465
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
*/
|
||||
|
||||
declare module 'fbjs/lib/invariant' {
|
||||
declare function exports<T>(
|
||||
condition: any,
|
||||
message: string,
|
||||
...args: Array<any>
|
||||
): void;
|
||||
declare function exports<T>(condition: any, message: string, ...args: Array<any>): void;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/nullthrows' {
|
||||
|
||||
Reference in New Issue
Block a user