-
-
Notifications
You must be signed in to change notification settings - Fork 393
Expand file tree
/
Copy pathhelpers.ts
More file actions
30 lines (24 loc) · 624 Bytes
/
helpers.ts
File metadata and controls
30 lines (24 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { helpers } from '@module-federation/runtime-core';
import { getGlobalFederationInstance } from './utils';
export type {
IGlobalUtils,
IShareUtils,
} from '@module-federation/runtime-core';
export const global = {
...helpers.global,
getGlobalFederationInstance,
};
export const share = helpers.share;
export const utils = helpers.utils;
const runtimeHelpers = {
global,
share,
utils,
};
export default runtimeHelpers as {
global: typeof helpers.global & {
getGlobalFederationInstance: typeof getGlobalFederationInstance;
};
share: typeof helpers.share;
utils: typeof helpers.utils;
};