aboutsummaryrefslogtreecommitdiff
path: root/src/context.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-09 20:13:33 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-09 20:13:33 +0530
commit5aad91f273f39ba1a11143585835e757a57de234 (patch)
tree28379cc54ccb1bdd3de2a4c639d24ea5dac82dd5 /src/context.ts
parent2af211f1bd6a5c81ee7acd2ded2bfacf4dcfb2a4 (diff)
downloadts-types-lang-5aad91f273f39ba1a11143585835e757a57de234.tar.gz
ts-types-lang-5aad91f273f39ba1a11143585835e757a57de234.zip
refactor: moves stuff around
Diffstat (limited to 'src/context.ts')
-rw-r--r--src/context.ts2
1 files changed, 1 insertions, 1 deletions
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