Skip to content

Commit

Permalink
Fix and enforce empty array providers in xplat/js
Browse files Browse the repository at this point in the history
Reviewed By: bradzacher

Differential Revision: D41207298

fbshipit-source-id: cd25a3edbb8bb94fd18434c9cee16f9c36f9b74a
  • Loading branch information
pieterv authored and facebook-github-bot committed Nov 14, 2022
1 parent bf6ed07 commit f453292
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty

experimental.array_literal_providers=true
inference_mode=constrain_writes

[lints]
Expand Down
1 change: 1 addition & 0 deletions .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty

experimental.array_literal_providers=true
inference_mode=constrain_writes

[lints]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ describe('throwIfModuleTypeIsUnsupported', () => {
describe('throwIfMoreThanOneModuleInterfaceParserError', () => {
it("don't throw error if module specs length is <= 1", () => {
const nativeModuleName = 'moduleName';
const moduleSpecs = [];
const moduleSpecs: $ReadOnlyArray<$FlowFixMe> = [];
const parserType = 'Flow';

expect(() => {
Expand Down

0 comments on commit f453292

Please sign in to comment.