aboutsummaryrefslogtreecommitdiff
path: root/src/context.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-14 11:27:51 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-14 11:27:51 +0530
commitb347afc70c305b47860a40bac43c3fe407a3c25a (patch)
treef8bdf2ab6bbd070e6cf1fae8b16a25c268c765ad /src/context.ts
parent97817711d3eebaacc354a77aa83bc9544cc87d42 (diff)
downloadts-types-lang-b347afc70c305b47860a40bac43c3fe407a3c25a.tar.gz
ts-types-lang-b347afc70c305b47860a40bac43c3fe407a3c25a.zip
chore: prettier
Diffstat (limited to 'src/context.ts')
-rw-r--r--src/context.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context.ts b/src/context.ts
index adc0be5..fe33731 100644
--- a/src/context.ts
+++ b/src/context.ts
@@ -116,7 +116,7 @@ export const createContext = (options: CtxOptions): Ctx => {
evaluateType,
newScope() {
- environment.unshift(new Map)
+ environment.unshift(new Map())
},
addToScope(name, resKey) {
if (environment.length === 0) ctx.newScope()
@@ -127,7 +127,7 @@ export const createContext = (options: CtxOptions): Ctx => {
environment.shift()
},
getKeyInScope(name) {
- return environment.find(scope => scope.has(name))?.get(name)
+ return environment.find((scope) => scope.has(name))?.get(name)
},
withScope: (fn) => async () => {
ctx.newScope()