diff --git a/packages/api/src/typings/global.ts b/packages/api/src/typings/global.ts index ca054194..1124866e 100644 --- a/packages/api/src/typings/global.ts +++ b/packages/api/src/typings/global.ts @@ -16,7 +16,11 @@ declare global { var ScriptEngineContextHolder: any; function engineLoad(str: string): any; interface Core { - getClass(name: String); + getClass(name: String): any; + getInstance(): any; + read(path: string): string; + save(path: string, content: string): void; + delete(path: string): void; } interface Console { ex(err: Error): void;