diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-12 17:11:36 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-12 17:11:36 +0530 |
| commit | 83b6bcaa81a645e1b3936d856fbb84ea219ee04e (patch) | |
| tree | 66471660cc70c56a5472fd3dd45c480fe86eea2d /src | |
| parent | d87c171a59a1293aa223d98fc19d4e5a694516c3 (diff) | |
| download | ts-types-lang-83b6bcaa81a645e1b3936d856fbb84ea219ee04e.tar.gz ts-types-lang-83b6bcaa81a645e1b3936d856fbb84ea219ee04e.zip | |
feat: adds exit process effect
Diffstat (limited to '')
| -rw-r--r-- | src/eval.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eval.ts b/src/eval.ts index 19a5557..c34e911 100644 --- a/src/eval.ts +++ b/src/eval.ts @@ -116,6 +116,11 @@ export const evaluateType = async ( return [resultKey] }, + Exit: async () => { + const exitCode = args[0] && ctx.getTypeValue(args[0]) + process.exit(exitCode) + }, + ReadLine: async () => { const line = await readLineFromStdin() const [resultKey, _] = ctx.createResult(`${JSON.stringify(line)}`) |
