Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModul
**/*.windows.js

**/node_modules/resolve/test/resolver/malformed_package_json/package.json
**/node_modules/invariant/**

; Checked-in build output
packages/debugger-frontend/dist/**
Expand Down Expand Up @@ -52,6 +53,9 @@ experimental.multi_platform=true
experimental.multi_platform.extensions=.ios
experimental.multi_platform.extensions=.android

experimental.assertion_functions=true
experimental.disable_invariant_special_casing=true

munge_underscores=true

module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/packages/react-native/index.js'
Expand Down
23 changes: 23 additions & 0 deletions flow-typed/npm/invariant_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/

declare module 'invariant' {
declare module.exports: (
condition: unknown,
format?: string,
...args: Array<unknown>
) => asserts condition;
}

declare module 'invariant/invariant' {
import typeof Invariant from 'invariant';

declare module.exports: Invariant;
}
Loading