method IConfig.get
IConfig.get<T>(
key: string,
options: { readonly default: T; }
): T

Reads a configuration value with a fallback.

Type Parameters

The expected value type

Parameters

key: string

Configuration key

options: { readonly default: T; }

Default returned when the key is absent

Return Type

The value, or the default

Usage

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