From e319818b8cc27450237f4b6b96022458ae478ab2 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 6 Jan 2023 18:07:26 +0530 Subject: refactor: splits funcs into stdlib --- src/runtime.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime.ts') diff --git a/src/runtime.ts b/src/runtime.ts index f066df9..dae492c 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -71,7 +71,7 @@ const accumulateResults = async (effTyp: Type, node: Node): Promise => return [hash] }, - ChainIO: async () => { + Bind: async () => { const inputTyp = effTyp.getProperty('input')?.getTypeAtLocation(node) const inputResults = inputTyp && await accumulateResults(inputTyp, node) return inputResults ?? [] @@ -149,7 +149,7 @@ const evalAccumulator = async (effNode: Node, node: Node) => { await fs.writeFile(filePath, contents) }, - ChainIO: async () => { + Bind: async () => { const chainToKind = effTyp.getProperty('chainTo')?.getTypeAtLocation(node) const [hashRes] = await accumulateResults(effTyp, node) const chainRes = `(${typeToString(chainToKind)} & { input: ${RESULT_TYPE_NAME}[${JSON.stringify(hashRes)}]['output'] })['return']` -- cgit v1.3.1