From 518a6a9ee31f0b03f08cb77bc613b4d708bb640b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 13 Jan 2023 20:32:20 +0530 Subject: chore: prettier --- src/context.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/context.ts') 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 = new Map + const refMap: Map = 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, -- cgit v1.3.1