RUNTIMES
All known runtime values as a readonly tuple.
Useful for validation, iteration, and exhaustiveness checks.
- Import:
@kjanat/dreamcli/runtime - Export kind: constant
- Declared in:
src/runtime/detect.ts - Source link:
packages/dreamcli/src/runtime/detect.ts:43
Signatures
ts
const RUNTIMES: readonly ["node", "bun", "deno", "unknown"];Examples
ts
if (RUNTIMES.includes(value)) {
// value is a valid Runtime
}