PathConfigLoader
Load an existing config file by path. Its result must be a plain object.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/config/index.ts - Source link:
src/core/config/index.ts:52
Signatures
ts
interface PathConfigLoader {}Members
Properties
extensions
File extensions this loader handles, without leading dots.
ts
extensions: readonly string[];load
Load the selected file, synchronously or asynchronously. Failures become CONFIG_PARSE_ERROR.
ts
load: { (path: string, adapter: ConfigAdapter): unknown; };