Interface ConfigValue<SchemaT, EnvironmentT>

Represents a single configuration value with metadata.

interface ConfigValue<SchemaT, EnvironmentT extends readonly string[]> {
    defaultValue: SchemaT;
    description: string;
    overrides?: Readonly<Partial<Record<EnvironmentT[number], SchemaT>>>;
}

Type Parameters

  • SchemaT
  • EnvironmentT extends readonly string[]

Properties

defaultValue: SchemaT

Default value used when no override or environment variable is present

description: string

Human-readable description of the configuration value

overrides?: Readonly<Partial<Record<EnvironmentT[number], SchemaT>>>

Optional environment-specific overrides.

{ development: "dev-host", production: "prod-host" }