Hyperlinkv0.8.0-beta.28

DynamicConfig

DynamicConfig.allconstsrc/DynamicConfig.ts:413
<const F extends FieldsInput>(input: F): AllConfig<ConfigBag<F>>

The combined, yieldable form — yield* DynamicConfig.all({...}) reads every field into one object, like Config.all. Accepts a field map or a bag from make; pass one into the other to convert.

Reads all fields at once, so it's all-or-nothing (it fails if any field fails); per-field reads via make are independent.

constructorsmake
export const all = <const F extends FieldsInput>(
  input: F,
): AllConfig<ConfigBag<F>> => {
  const result = makeEffectable<AllConfig<ConfigBag<F>>>(AllProto);
  // `make(input)` is typed `ConfigBag<F>` — exactly the `[AllTypeId]` slot.
  result[AllTypeId] = make(input);
  return result;
};