AbstractReadonlyasyncProtectedcommentsReadonlyforceReadonlynameProtectedbuildProtectedcolorizeOptionaldeleteProtectedflattenOptional hook to format validation errors.
The array of errors from TypeBox/Value.
A formatted string or undefined to use default formatting.
ProtectedgetProtectedinjectProtectedjsonOptionaljsonPath: stringProtectedjsonProtectedjsonAbstractloadLoads the configuration from the source.
The schema definition.
The loaded configuration object.
ProtectedmergeProtectedparseParses raw file content into a config object (comments/keyroot/defaults).
ProtectedparseParses content read inside a transaction, tolerating a corrupted file.
AbstractsaveProtectedserializeProtectedstripOptionaltransactionOptional transactional read-modify-write. When implemented, Kfg.mutate()
uses it to make the whole load→modify→save cycle atomic across processes
(preventing lost updates). fn receives the freshly-read raw config and
returns the raw config to persist.
OptionalupdateOptional hook for updates. Use this ONLY if the driver handles atomic updates and doesn't need the full object every time. If implemented, Kfg.set() will call this INSTEAD of save().
The key updated (dot notation).
The new value.
Optionaldescription: stringProtectedwrapProtectedwrite
Optional hook for deletion. Use this ONLY if the driver handles atomic deletion. If implemented, Kfg.del() will call this INSTEAD of save().