Hyperlinkv0.8.0-beta.28

DynamicConfig

DynamicConfig.makefunctionsrc/DynamicConfig.ts:388
<const F extends FieldsInput>(fields: F): ConfigBag<F>
<Bag extends FieldRecord>(all: AllConfig<Bag>): Bag

Group fields into a bag with per-field accessors (cfg.apiKey.set(...)). Each value is a plain Config (→ read-only field) or an already-built field from swappable / another bag. Pass an AllConfig to convert it back.

export function make<const F extends FieldsInput>(fields: F): ConfigBag<F>;
export function make<Bag extends FieldRecord>(all: AllConfig<Bag>): Bag;
export function make(input: FieldsInput | AllConfig<FieldRecord>): FieldRecord {
  return toFieldRecord(input);
}
Referenced by 2 symbols