diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/types.ts | 2 | ||||
| -rw-r--r-- | src/util.ts | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/types.ts b/src/types.ts index 55d2cce..7be4c98 100644 --- a/src/types.ts +++ b/src/types.ts @@ -14,7 +14,7 @@ export interface Ctx { getTypeValue: (ty: Type | undefined) => any createResult: (ty: string) => [string, Node | undefined] - removeResult: (key?: string) => void, + removeResult: (key?: string) => void getResultExpr: (key?: string) => string printResultNode: () => void diff --git a/src/util.ts b/src/util.ts index 2746746..a486294 100644 --- a/src/util.ts +++ b/src/util.ts @@ -14,7 +14,11 @@ export const evalList = async (ctx: Ctx, effectTyps: Type[]) => { return effectResults } -export const applyFunc = (ctx: Ctx, fn: Type | undefined, val: string): Type => { +export const applyFunc = ( + ctx: Ctx, + fn: Type | undefined, + val: string +): Type => { const resultType = (() => { const baseTypes = fn ?.getBaseTypes() @@ -73,4 +77,3 @@ export const applyFunc = (ctx: Ctx, fn: Type | undefined, val: string): Type => return resultType } - |
