method IConfig.getOrThrow
IConfig.getOrThrow<T>(key: string): T

Reads a required configuration value.

Type Parameters

The expected value type

Parameters

key: string

Configuration key

Return Type

The value

Throws

Error

If the key is absent

Usage

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