diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-12 18:41:49 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-12 18:41:49 +0530 |
| commit | a107048f87828b87b3bd55db1b6217710c40ee84 (patch) | |
| tree | 2aa04a13f0d2987cc3eb7efe979d77834e2b57ce /src/types.ts | |
| parent | 3020be98876613b19dcc79f6cc8cade12460ba48 (diff) | |
| download | ts-types-lang-a107048f87828b87b3bd55db1b6217710c40ee84.tar.gz ts-types-lang-a107048f87828b87b3bd55db1b6217710c40ee84.zip | |
feat: adds mutable reference effects
Diffstat (limited to 'src/types.ts')
| -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 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 |
