API reference / @backpack/config / Loader
Interface: Loader
A loader retrieves (partial) config objects from specific sources.
Properties
name?
ts
optional name: string;
Name of the loader.
read()
ts
read: (schema) =>
| Record<string, unknown>
| Promise<Record<string, unknown>>;
Reads the config.
Parameters
Parameter | Type |
---|---|
schema | AnyZodObject |
Returns
| Record
<string
, unknown
> | Promise
<Record
<string
, unknown
>>
silent?
ts
optional silent: boolean;
Whether to suppress errors.