Skip to content

Commit 0581a9f

Browse files
authored
chore: export react-bridge types (#4150)
1 parent 32600de commit 0581a9f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/bridge/bridge-react/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export {
77
createRemoteComponent,
88
createRemoteAppComponent,
99
} from './remote/create';
10+
export type { LazyRemoteComponentInfo } from './remote/create';
1011
export {
1112
ERROR_TYPE,
1213
createLazyComponent,
@@ -34,6 +35,10 @@ export type {
3435
RootType,
3536
DestroyParams,
3637
RenderParams,
38+
RemoteComponentParams,
39+
RenderFnParams,
40+
RemoteComponentProps,
41+
RemoteModule,
3742
} from './types';
3843
export type {
3944
DataFetchParams,

packages/bridge/bridge-react/src/remote/create.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import {
88
RemoteModule,
99
} from '../types';
1010

11-
type LazyRemoteComponentInfo<T, _E extends keyof T> = RemoteComponentParams<T>;
11+
export type LazyRemoteComponentInfo<
12+
T,
13+
_E extends keyof T,
14+
> = RemoteComponentParams<T>;
1215

1316
function createLazyRemoteComponent<
1417
T = Record<string, unknown>,

0 commit comments

Comments
 (0)