(value: unknown): value is ConfigField<unknown>Type predicate for a ConfigField.
guardsConfigField
Source src/DynamicConfig.ts:1604 lines
export const const isConfigField: (
value: unknown
) => value is ConfigField<unknown>
Type predicate for a
ConfigField
.
isConfigField = (
value: unknownvalue: unknown,
): value: unknownvalue is interface ConfigField<A>A yieldable config field. yield* field reads its underlying Config
through the ambient provider. Read-only on its own;
SwappableField
adds the control methods — so swappability is a structural distinction, not a
stored marker flag.
ConfigField<unknown> =>
typeof value: unknownvalue === "object" && value: object | nullvalue !== null && const ConfigFieldTypeId: typeof ConfigFieldTypeIdConfigFieldTypeId in value: objectvalue;