Skip to main content

Function: getJsonFileConfigLoader()

getJsonFileConfigLoader<T>(filename, transform?): ConfigurationProvider<T>

A factory function to create simple configuration providers that load configuration from a JSON file.

Type Parameters

T

Parameters

filename: string

The filename of the JSON file to load.

transform?

The function to transform the loaded JSON object into the desired configuration object.

Returns

ConfigurationProvider<T>

A {@link ConfigurationProvider} that loads configuration from the specified JSON file.

Defined in

packages/parser/src/lib/config-files/json-file-loader.ts:13