ExitCode
ExitCode =
number&object
Defined in: packages/core/src/kernel/types.ts:95
Exit code returned by a bin. 0 = success, non-zero = failure, 128 + N = killed by signal N.
Type Declaration
Section titled “Type Declaration”__brand
Section titled “__brand”
readonly__brand:"ExitCode"
Remarks
Section titled “Remarks”Branded so return 1 in a bin is a compile error — the boundary is
return exitCode(1), which surfaces intent and prevents a file size or
byte count being accidentally returned as the process result.
Example
Section titled “Example”import { exitCode, type BinFunction } from '@fishnet/core'const ok: BinFunction = async () => exitCode(0)exitCode