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:
parent
a7f1428d4a
commit
fe5c2615dd
|
@ -79,6 +79,8 @@ module.system=haste
|
||||||
esproposal.class_static_fields=enable
|
esproposal.class_static_fields=enable
|
||||||
esproposal.class_instance_fields=enable
|
esproposal.class_instance_fields=enable
|
||||||
|
|
||||||
|
experimental.strict_type_args=true
|
||||||
|
|
||||||
munge_underscores=true
|
munge_underscores=true
|
||||||
|
|
||||||
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
|
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
|
||||||
|
|
|
@ -102,6 +102,6 @@ exports.examples = [
|
||||||
platform: 'ios',
|
platform: 'ios',
|
||||||
title: 'Memory Warnings',
|
title: 'Memory Warnings',
|
||||||
description: 'In the IOS simulator, hit Shift+Command+M to simulate a memory warning.',
|
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!
|
* NOTE: For web URLs, the protocol ("http://", "https://") must be set accordingly!
|
||||||
*/
|
*/
|
||||||
openURL(url: string): Promise {
|
openURL(url: string): Promise<any> {
|
||||||
this._validateURL(url);
|
this._validateURL(url);
|
||||||
return LinkingManager.openURL(url);
|
return LinkingManager.openURL(url);
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
"core-js": "^2.2.2",
|
"core-js": "^2.2.2",
|
||||||
"debug": "^2.2.0",
|
"debug": "^2.2.0",
|
||||||
"event-target-shim": "^1.0.5",
|
"event-target-shim": "^1.0.5",
|
||||||
"fbjs": "^0.8.0",
|
"fbjs": "^0.8.3",
|
||||||
"fbjs-scripts": "^0.7.0",
|
"fbjs-scripts": "^0.7.0",
|
||||||
"graceful-fs": "^4.1.3",
|
"graceful-fs": "^4.1.3",
|
||||||
"image-size": "^0.3.5",
|
"image-size": "^0.3.5",
|
||||||
|
|
Loading…
Reference in New Issue