Fix and enforce empty array providers in xplat/js

Reviewed By: bradzacher

Differential Revision: D41207298

fbshipit-source-id: cd25a3edbb8bb94fd18434c9cee16f9c36f9b74a
This commit is contained in:
Pieter Vanderwerff
2022-11-14 10:41:58 -08:00
committed by Facebook GitHub Bot
parent bf6ed07c0f
commit f45329221a
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty
experimental.array_literal_providers=true
inference_mode=constrain_writes
[lints]
+1
View File
@@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty
experimental.array_literal_providers=true
inference_mode=constrain_writes
[lints]
@@ -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(() => {