aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-14 11:26:56 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-14 11:26:56 +0530
commit97817711d3eebaacc354a77aa83bc9544cc87d42 (patch)
tree887da757f2890357878c8ec2d21753efaf17a6f2 /src/types.ts
parentefe0ab336144d2d965bf355db02762f5cf539c7f (diff)
downloadts-types-lang-97817711d3eebaacc354a77aa83bc9544cc87d42.tar.gz
ts-types-lang-97817711d3eebaacc354a77aa83bc9544cc87d42.zip
feat: adds bindto with scopes
Diffstat (limited to '')
-rw-r--r--src/types.ts8
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,
}