From c9d62cc6173626a9cdbb6053bd769dcc3efeedc3 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 15 Jan 2020 16:44:14 +0800 Subject: [PATCH] feat: completion base func Signed-off-by: MiaoWoo --- packages/api/src/typings/global.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;