property ScriptResult.exitCode

globalThis.exitCode if the script set one, 1 if it threw, else 0.

Type

number

Usage

import { type ScriptResult } from "lib/api/run.ts";