-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathglobal.d.ts
51 lines (49 loc) · 1.1 KB
/
global.d.ts
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
declare const __DEV__: boolean;
declare const __webpack_init_sharing__: (name: string) => Promise<void>;
declare const __webpack_share_scopes__: Record<string, string>;
interface Window {
/**
* Fronts app's meta data
*/
__FRONTS__: Record<
string,
{
dependencies: Record<string, string>;
registry?: string;
version?: string;
}
> & {
__main__: string;
__entry__: string;
};
/**
* Use `Standalone` app
*/
__FRONTS__DYNAMIC__IMPORT__: boolean;
/**
* App bootstrap collection for non-module-federation
*/
__FRONTS__DYNAMIC__MODULES__: Record<
string,
{
default: (target: HTMLElement | null) => () => void;
}
>;
/**
* Handlers for loading script listener for non-module-federation
*/
__FRONTS__FETCH__MODULES__: Record<string, Set<() => void>>;
/**
*
*/
__FRONTS_CUSTOM_ELEMENTS_INSTANCES__: Set<HTMLStyleElement>;
/**
* Inserted CSS element with style loader
*/
_lastElementInsertedByStyleLoader: HTMLStyleElement;
}
declare namespace JSX {
interface IntrinsicElements {
'fronts-app': any;
}
}