react-native-github: turn on strict type args in Flow, codemod stragglers

Reviewed By: frantic

Differential Revision: D3374980

fbshipit-source-id: 6dbefeffa588f676c8e162ba7ac7912b61a7711a
This commit is contained in:
Basil Hosmer 2016-06-03 02:37:43 -07:00 коммит произвёл Facebook Github Bot 4
Родитель a7f1428d4a
Коммит fe5c2615dd
4 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -79,6 +79,8 @@ module.system=haste
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
experimental.strict_type_args=true
munge_underscores=true
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'

Просмотреть файл

@ -102,6 +102,6 @@ exports.examples = [
platform: 'ios',
title: 'Memory Warnings',
description: 'In the IOS simulator, hit Shift+Command+M to simulate a memory warning.',
render(): ReactElement { return <AppStateSubscription showMemoryWarnings={true} />; }
render(): ReactElement<any> { return <AppStateSubscription showMemoryWarnings={true} />; }
},
];

Просмотреть файл

@ -149,7 +149,7 @@ class Linking extends NativeEventEmitter {
*
* NOTE: For web URLs, the protocol ("http://", "https://") must be set accordingly!
*/
openURL(url: string): Promise {
openURL(url: string): Promise<any> {
this._validateURL(url);
return LinkingManager.openURL(url);
}

Просмотреть файл

@ -148,7 +148,7 @@
"core-js": "^2.2.2",
"debug": "^2.2.0",
"event-target-shim": "^1.0.5",
"fbjs": "^0.8.0",
"fbjs": "^0.8.3",
"fbjs-scripts": "^0.7.0",
"graceful-fs": "^4.1.3",
"image-size": "^0.3.5",