feat: add global eventCenter & static console source map

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-05-13 18:41:05 +08:00
parent a5ca0c2346
commit 97db272041
3 changed files with 15 additions and 9 deletions

View File

@ -45,6 +45,7 @@ declare global {
logger: any;
debug: boolean;
level: string;
eventCenter: EventEmitter;
NashornEngineStartTime: number;
setGlobal: (key: string, value: any, config?: PropertyDescriptor & ThisType<any>) => void;
noop: () => void;
@ -70,6 +71,9 @@ declare global {
console(...args: any): void;
i18n(name: string, ...params: any[]): void;
}
interface ProxyConstructor {
newProxy<T extends object>(target: T, handler: ProxyHandler<T>): T;
}
}
export { };