@cfxlabsinc/b2b-services
    Preparing search index...

    Interface ConfigKeys<K>

    A typed handle on declared keys, read from the process's flat config.

    interface ConfigKeys<K extends string> {
        spec: KeysSpec<K>;
        get(key: K): string;
        getOptional(key: K): string | undefined;
    }

    Type Parameters

    • K extends string
    Index
    spec: KeysSpec<K>
    • The value, or the default; throws a named error when there is neither.

      Parameters

      • key: K

      Returns string

    • Parameters

      • key: K

      Returns string | undefined