mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix and enforce empty array providers in xplat/js
Reviewed By: bradzacher Differential Revision: D41207298 fbshipit-source-id: cd25a3edbb8bb94fd18434c9cee16f9c36f9b74a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bf6ed07c0f
commit
f45329221a
@@ -51,6 +51,7 @@ suppress_type=$FlowFixMeProps
|
||||
suppress_type=$FlowFixMeState
|
||||
suppress_type=$FlowFixMeEmpty
|
||||
|
||||
experimental.array_literal_providers=true
|
||||
inference_mode=constrain_writes
|
||||
|
||||
[lints]
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user