react-native-macos/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js

39 строки
898 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its 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
*/
// These don't actually exist anywhere in the code.
'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,
};
module.exports = MessageQueueTestConfig;