diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-13 19:21:41 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-13 19:21:41 +0530 |
| commit | 8ba316461d2dc0a1372af16836ce14ceabc2bf4f (patch) | |
| tree | afcd80654b1e83fe78fcb4bf69a71f730ee3e299 /src/types.ts | |
| parent | fe710f58a982e31e64c02d887567bcd9a4108b24 (diff) | |
| download | ts-types-lang-8ba316461d2dc0a1372af16836ce14ceabc2bf4f.tar.gz ts-types-lang-8ba316461d2dc0a1372af16836ce14ceabc2bf4f.zip | |
feat: adds test to stdlib + refactors runtime environment
Diffstat (limited to '')
| -rw-r--r-- | src/types.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index 059c0c2..d9e874e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -17,6 +17,9 @@ export interface Ctx { getResultExpr: (key?: string) => string printResultNode: () => void + currentEnv: string, + setEnv: (e: string) => void, + createRef: (ty: string) => string, getRef: (key: string) => any, setRef: (key: string, ty: string) => void, @@ -25,4 +28,6 @@ export interface Ctx { addCustomEffect: (name: string, expr: string) => void runCustomEffect: (name: string, args: Type[]) => Promise<string[]> hasCustomEffect: (name: string) => boolean + + evaluateType: (ctx: Ctx, effTyp: Type) => Promise<string[]> } |
