Configuration for FileDataSource.


  • FileDataSourceOptions


autoUpdate?: boolean

True if FileDataSource should reload flags whenever one of the data files is modified. This feature uses Node's API, so it is subject to the limitations described here.

logger?: LDLogger

Configures a logger for warnings and errors. This can be a custom logger or an instance of. By default, it uses the same logger as the rest of the SDK.

paths: string[]

The path(s) of the file(s) that FileDataSource will read.

yamlParser?: ((data) => any)

Type declaration

    • (data): any
    • The SDK can support yaml if provided with a parser. The parser must output objects which are equivalent to the standard JSON parser. The parser of the yaml package can be used.


      • data: string

      Returns any

Generated using TypeDoc