aboutsummaryrefslogtreecommitdiff
path: root/src/context.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-13 20:32:20 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-13 20:33:01 +0530
commit518a6a9ee31f0b03f08cb77bc613b4d708bb640b (patch)
tree7f17ce66f337dee573192ce06a24385415048ae2 /src/context.ts
parent42f8c401dc9519bc8b2d386ce9eda072144a46d0 (diff)
downloadts-types-lang-518a6a9ee31f0b03f08cb77bc613b4d708bb640b.tar.gz
ts-types-lang-518a6a9ee31f0b03f08cb77bc613b4d708bb640b.zip
chore: prettier
Diffstat (limited to '')
-rw-r--r--src/context.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/context.ts b/src/context.ts
index 485083a..06fe041 100644
--- a/src/context.ts
+++ b/src/context.ts
@@ -61,12 +61,12 @@ export const createContext = (options: CtxOptions): Ctx => {
const getTypeValue = (ty: Type | undefined): any => {
try {
return JSON.parse(typeToString(ty))
- } catch(_) {
+ } catch (_) {
return null
}
}
- const refMap: Map<string, string> = new Map
+ const refMap: Map<string, string> = new Map()
const createRef = (ty: string): string => {
const key = uuid()
refMap.set(key, ty)
@@ -83,7 +83,9 @@ export const createContext = (options: CtxOptions): Ctx => {
typeToString,
getTypeValue,
- get currentEnv() { return currentEnv },
+ get currentEnv() {
+ return currentEnv
+ },
setEnv,
createRef,