Setu-TS
    Preparing search index...

    Interface ConfigSection<T>

    A typed declaration for a related group of flat configuration keys.

    prefix is prepended to each entry in keys before reading the flat configuration snapshot. The schema receives an object whose keys are the prefix-stripped entries from keys.

    0.7.0

    interface ConfigSection<T> {
        keys: readonly string[];
        prefix: string;
        schema: StructuralSchema<T>;
    }

    Type Parameters

    • T

      The validated output produced by the section schema

    Index
    keys: readonly string[]

    Prefix-stripped keys that belong to this section.

    prefix: string

    Prefix prepended to every declared key when reading the configuration.

    Schema that validates the selected, prefix-stripped values.