From 5aad91f273f39ba1a11143585835e757a57de234 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 9 Jan 2023 20:13:33 +0530 Subject: refactor: moves stuff around --- src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/context.ts') diff --git a/src/context.ts b/src/context.ts index e0c0fa5..196c85d 100644 --- a/src/context.ts +++ b/src/context.ts @@ -34,7 +34,7 @@ export const createContext = (options: CtxOptions): Ctx => { ) const getResultExpr = (resultKey?: string) => - `${RESULT_TYPE_NAME}[${JSON.stringify(resultKey)}` + `(${RESULT_TYPE_NAME}[${JSON.stringify(resultKey)})` const addResult = (name: string, ty: string): Node | undefined => resultTypeNode -- cgit v1.3.1