@hsui/micro-app
Version:
Hundsun micro-app framework
24 lines (23 loc) • 555 B
TypeScript
/**
* @author Kuitos
* @since 2020-3-31
*/
import type { SandBox } from '../interfaces';
import { SandBoxType } from '../interfaces';
/**
* 基于 Proxy 实现的沙箱
*/
export default class ProxySandbox implements SandBox {
/** window 值变更记录 */
private updatedValueSet;
/** AMD Module */
private AMDProxyValueMap;
name: string;
type: SandBoxType;
proxy: WindowProxy;
sandboxRunning: boolean;
latestSetProp: PropertyKey | null;
active(): void;
inactive(): void;
constructor(name: string);
}