Skip to content

Commit f453292

Browse files
pietervfacebook-github-bot
authored andcommitted
Fix and enforce empty array providers in xplat/js
Reviewed By: bradzacher Differential Revision: D41207298 fbshipit-source-id: cd25a3edbb8bb94fd18434c9cee16f9c36f9b74a
1 parent bf6ed07 commit f453292

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
5151
suppress_type=$FlowFixMeState
5252
suppress_type=$FlowFixMeEmpty
5353

54+
experimental.array_literal_providers=true
5455
inference_mode=constrain_writes
5556

5657
[lints]

.flowconfig.android

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
5151
suppress_type=$FlowFixMeState
5252
suppress_type=$FlowFixMeEmpty
5353

54+
experimental.array_literal_providers=true
5455
inference_mode=constrain_writes
5556

5657
[lints]

packages/react-native-codegen/src/parsers/__tests__/error-utils-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ describe('throwIfModuleTypeIsUnsupported', () => {
595595
describe('throwIfMoreThanOneModuleInterfaceParserError', () => {
596596
it("don't throw error if module specs length is <= 1", () => {
597597
const nativeModuleName = 'moduleName';
598-
const moduleSpecs = [];
598+
const moduleSpecs: $ReadOnlyArray<$FlowFixMe> = [];
599599
const parserType = 'Flow';
600600

601601
expect(() => {

0 commit comments

Comments
 (0)