diff --git a/.flowconfig b/.flowconfig index fe850cb6952..bb444475193 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 0f9c3c321a3..8cac00b5414 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 22179410958..455de7ec75a 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 2ce89688d5f..bca743d1e27 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",