diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-14 11:26:56 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-14 11:26:56 +0530 |
| commit | 97817711d3eebaacc354a77aa83bc9544cc87d42 (patch) | |
| tree | 887da757f2890357878c8ec2d21753efaf17a6f2 /src/types.ts | |
| parent | efe0ab336144d2d965bf355db02762f5cf539c7f (diff) | |
| download | ts-types-lang-97817711d3eebaacc354a77aa83bc9544cc87d42.tar.gz ts-types-lang-97817711d3eebaacc354a77aa83bc9544cc87d42.zip | |
feat: adds bindto with scopes
Diffstat (limited to 'src/types.ts')
| -rw-r--r-- | src/types.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts index c0258db..411c8ed 100644 --- a/src/types.ts +++ b/src/types.ts @@ -29,5 +29,11 @@ export interface Ctx { runCustomEffect: (name: string, args: Type[]) => Promise<string[]> hasCustomEffect: (name: string) => boolean - evaluateType: (ctx: Ctx, effTyp: Type) => Promise<string[]> + evaluateType: (ctx: Ctx, effTyp: Type) => Promise<string[]>, + + withScope: (fn: () => Promise<string[]>) => (() => Promise<string[]>), + newScope: () => void, + clearScope: () => void, + addToScope: (name: string, resKey: string) => void, + getKeyInScope: (name: string) => string | undefined, } |
