diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-06 18:07:26 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-06 18:07:26 +0530 |
| commit | e319818b8cc27450237f4b6b96022458ae478ab2 (patch) | |
| tree | 2c92f4f4b52ead1b879b8e1411ff782fff3dbe6b /src/runtime.ts | |
| parent | 549440bf01ac5fa76d34d0b263f409a9802121e4 (diff) | |
| download | ts-types-lang-e319818b8cc27450237f4b6b96022458ae478ab2.tar.gz ts-types-lang-e319818b8cc27450237f4b6b96022458ae478ab2.zip | |
refactor: splits funcs into stdlib
Diffstat (limited to 'src/runtime.ts')
| -rw-r--r-- | src/runtime.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<string[]> => 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']` |
