[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:
Nicolas Gallagher
2017-05-27 10:43:04 -07:00
parent edef737249
commit bcdeda5dab
40 changed files with 212 additions and 52 deletions

View File

@@ -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' {