NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/qiankun/lib/sandbox/legacy/sandbox.d.ts

29 lines
981 B
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
/**
* @author Kuitos
* @since 2019-04-11
*/
import type { SandBox } from '../../interfaces';
import { SandBoxType } from '../../interfaces';
/**
* Proxy
* TODO: 为了兼容性 singular 使
*/
export default class LegacySandbox implements SandBox {
/** 沙箱期间新增的全局变量 */
private addedPropsMapInSandbox;
/** 沙箱期间更新的全局变量 */
private modifiedPropsOriginalValueMapInSandbox;
/** 持续记录更新的(新增和修改的)全局变量的 map用于在任意时刻做 snapshot */
private currentUpdatedPropsValueMap;
name: string;
proxy: WindowProxy;
globalContext: typeof window;
type: SandBoxType;
sandboxRunning: boolean;
latestSetProp: PropertyKey | null;
private setWindowProp;
active(): void;
inactive(): void;
constructor(name: string, globalContext?: Window & typeof globalThis);
}