Skip to content

PathConfigLoader ​

Load an existing config file by path. Its result must be a plain object.

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; };

See Also ​

Released under the MIT License.