UNPKG

@litert/config-loader

Version:

A configuration file loader for JavaScript application.

90 lines (48 loc) 1.94 kB
[Documents for @litert/config-loader](../../index.md) / [Loader](../index.md) / ILoaderOptions # Interface: ILoaderOptions Defined in: [src/lib/Loader.ts:47](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L47) The options for the loader. ## See [ConfigLoader](../classes/ConfigLoader.md) ## Properties ### encodings > **encodings**: [`IEncoding`](../../Declaration/interfaces/IEncoding.md)[] Defined in: [src/lib/Loader.ts:57](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L57) The encodings to be registered in the loader. *** ### operators? > `optional` **operators**: ([`IOperator`](../../Declaration/interfaces/IOperator.md) \| [`IOperatorRegistration`](IOperatorRegistration.md))[] Defined in: [src/lib/Loader.ts:62](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L62) The operators to be registered in the loader. *** ### opPrefix? > `optional` **opPrefix**: `string` Defined in: [src/lib/Loader.ts:69](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L69) The prefix of operator expression. #### Default ```ts '$[[' ``` *** ### opSuffix? > `optional` **opSuffix**: `string` Defined in: [src/lib/Loader.ts:76](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L76) The suffix of operator expression. #### Default ```ts ']]' ``` *** ### reader > **reader**: [`IDataReader`](../../Declaration/interfaces/IDataReader.md) Defined in: [src/lib/Loader.ts:52](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L52) The data reader to be used by the loader. *** ### skipUnknownOperators? > `optional` **skipUnknownOperators**: `boolean` Defined in: [src/lib/Loader.ts:83](https://github.com/litert/config-loader.js/blob/master/src/lib/Loader.ts#L83) Whether to skip unknown operators and retain the original expression. #### Default ```ts false ```