Type Alias IConfigAccessor<TConfig>

IConfigAccessor: {
    get<TPath extends string>(path: TPath): PathValue<TConfig, TPath>;
    getOr<TPath extends string>(
        path: TPath,
        defaultValue: NonNullable<Get<TConfig, TPath>>,
    ): NonNullable<PathValue<TConfig, TPath>>;
}

IConfigAccessor provides type-safe access to configuration objects.

Type Parameters

Type declaration