interface EnvVarSpec
Since 0.1.0

Specification of one environment variable for IEnvironmentApi.validate.

Properties

readonly
optional
required: boolean

Whether the variable must be present.

readonly
optional
type: "string" | "number" | "boolean"

Expected primitive type (defaults to 'string').

readonly
optional
default: string | number | boolean

Default applied when the variable is absent.

Usage

import { type EnvVarSpec } from "common/src/index.ts";