aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index e3ea7e9..059c0c2 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -17,6 +17,11 @@ export interface Ctx {
getResultExpr: (key?: string) => string
printResultNode: () => void
+ createRef: (ty: string) => string,
+ getRef: (key: string) => any,
+ setRef: (key: string, ty: string) => void,
+ deleteRef: (key: string) => void,
+
addCustomEffect: (name: string, expr: string) => void
runCustomEffect: (name: string, args: Type[]) => Promise<string[]>
hasCustomEffect: (name: string) => boolean