From a107048f87828b87b3bd55db1b6217710c40ee84 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 12 Jan 2023 18:41:49 +0530 Subject: feat: adds mutable reference effects --- src/types.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/types.ts') 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 hasCustomEffect: (name: string) => boolean -- cgit v1.3.1