Interface IConfigStoreOptions

ConfigStore creation option

interface IConfigStoreOptions {
    configFileName?: string;
    entries?: IJson;
    env?: string;
    loadAll?: boolean;
    templateTags?: [string, string];
    validateModelOptions?: ValidateModelOptions;
}

Hierarchy

  • IReadConfigOptions
    • IConfigStoreOptions

Properties

configFileName?: string

Set the name of config file to read. Must be a .json file and defaults to config.json

entries?: IJson

Addtional entries to be added to data loaded

env?: string

Provide env string to use to look for config file. Default to FP8_ENV environmental variable or local.

loadAll?: boolean

If set, load all config files from the config directory

templateTags?: [string, string]

Define open and closing tag for mustache. Default to ['{{', '}}']

validateModelOptions?: ValidateModelOptions

Optional class-validator options