/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js
37 строк
918 B
Tim Yung
RN: Private Package for Monorepo ESLint Rules (#51858)
10 июн 2025, 06:30
10 июн 2025, 06:30
d17f7d0
Код
Авторство
О чём код?
/** * 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 */ 'use strict'; import type {ModuleConfig} from '../NativeModules'; const remoteModulesConfig: $ReadOnlyArray<ModuleConfig> = [ [ 'RemoteModule1', null, ['remoteMethod', 'promiseMethod', 'promiseReturningMethod', 'syncMethod'], [2 /* promiseReturningMethod */], [3 /* syncMethod */], ], [ 'RemoteModule2', null, ['remoteMethod', 'promiseMethod', 'promiseReturningMethod', 'syncMethod'], [2 /* promiseReturningMethod */], [3 /* syncMethod */], ], ]; const MessageQueueTestConfig = { remoteModuleConfig: remoteModulesConfig, }; // eslint-disable-next-line @react-native/monorepo/no-commonjs-exports module.exports = MessageQueueTestConfig;