From fe5c2615ddeb2f8ddf37635d2294cc102862fea5 Mon Sep 17 00:00:00 2001 From: Basil Hosmer Date: Fri, 3 Jun 2016 02:37:43 -0700 Subject: [PATCH] react-native-github: turn on strict type args in Flow, codemod stragglers Reviewed By: frantic Differential Revision: D3374980 fbshipit-source-id: 6dbefeffa588f676c8e162ba7ac7912b61a7711a --- .flowconfig | 2 ++ Examples/UIExplorer/AppStateExample.js | 2 +- Libraries/Linking/Linking.js | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.flowconfig b/.flowconfig index fe850cb69..bb4444751 100644 --- a/.flowconfig +++ b/.flowconfig @@ -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' diff --git a/Examples/UIExplorer/AppStateExample.js b/Examples/UIExplorer/AppStateExample.js index 0f9c3c321..8cac00b54 100644 --- a/Examples/UIExplorer/AppStateExample.js +++ b/Examples/UIExplorer/AppStateExample.js @@ -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 ; } + render(): ReactElement { return ; } }, ]; diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 221794109..455de7ec7 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -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 { this._validateURL(url); return LinkingManager.openURL(url); } diff --git a/package.json b/package.json index 2ce89688d..bca743d1e 100644 --- a/package.json +++ b/package.json @@ -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",