mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add registerCallableModule types (#43366)
Summary:
`registerCallableModule()` was added from 7f549ec7be but no typescript types there. this pr tries to add the corresponding types.
## Changelog:
[GENERAL] [FIXED] - Add missing `registerCallableModule` TypeScript definitions
Pull Request resolved: https://github.com/facebook/react-native/pull/43366
Test Plan: patch locally and try to `import { registerCallableModule } from 'react-native';` in a 0.74.0-rc.2 project
Reviewed By: fabriziocucci
Differential Revision: D54676151
Pulled By: cortinico
fbshipit-source-id: cd01f2ebe2d2516b458fae5b2e83cba3d3794455
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5126bace65
commit
6bc95b2074
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
type Module = Object;
|
||||
type RegisterCallableModule = (
|
||||
name: string,
|
||||
moduleOrFactory: Module | (() => Module),
|
||||
) => void;
|
||||
|
||||
export const registerCallableModule: RegisterCallableModule;
|
||||
+1
@@ -103,6 +103,7 @@ export * from '../Libraries/Components/View/View';
|
||||
export * from '../Libraries/Components/View/ViewAccessibility';
|
||||
export * from '../Libraries/Components/View/ViewPropTypes';
|
||||
export * from '../Libraries/Components/Button';
|
||||
export * from '../Libraries/Core/registerCallableModule';
|
||||
export * from '../Libraries/DevToolsSettings/DevToolsSettingsManager';
|
||||
export * from '../Libraries/EventEmitter/NativeEventEmitter';
|
||||
export * from '../Libraries/EventEmitter/RCTDeviceEventEmitter';
|
||||
|
||||
Reference in New Issue
Block a user