-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
71 lines (62 loc) · 1.94 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* eslint-disable vars-on-top */
/* eslint-disable no-var */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable camelcase */
export {};
declare global {
const __DEV__: boolean;
const __webpack_init_sharing__: (options: 'default') => Promise<void>;
const __webpack_share_scopes__: { default: Record<string, unknown> };
var __RC_MFE_REGISTRY_CALLBACK__: any;
var __RC_MFE_USE_LOADER__: boolean;
var ROARR: {
write: (message: string) => void;
};
var __RC_MFE__: {
entry: string;
main: string;
prefix?: string;
registry: string;
registryType: 'fetch' | 'jsonp';
registryAutoFetch: boolean;
version: string;
defaultMode: string;
modules: Record<string, any>;
toBeResolved: (() => void)[];
renderContainers: Record<string, any>;
styles: Record<string, any>;
enableCssIsolation?: boolean;
loads: Record<string, Promise<any>>;
dynamicImport: (...args: any) => any;
storage: {
clear(): void | Promise<void>;
getItem(key: string): string | null | Promise<string | null>;
removeItem(key: string): void | Promise<void>;
setItem(key: string, value: string): void | Promise<void>;
};
_onUpdateStorage: Set<(name: string, newValue: any, oldValue: any) => void>;
_updateStorage: Set<any>;
_toBeResolvedUpdateStorage: Set<() => void> | null;
sentryInstances: any[];
};
var __RC_MFE_REGISTRY_CALLBACK__: Record<string, (data: any) => void>;
var __RC_MFE_REGISTRY_PROMISES__: Record<string, Promise<any>>;
var __RC_MFE_CUSTOM_ELEMENTS_INSTANCES__: Map<
HTMLElement,
undefined | (() => void)
>;
var __RC_TRANSPORT__: any;
var mockImport: any;
interface Window {
_lastElementInsertedByStyleLoader: HTMLStyleElement;
name: string;
}
namespace JSX {
interface IntrinsicElements {
'rc-mfe': React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement>,
HTMLElement
>;
}
}
}