A source of configuration data.
It is recommended to implement the readConfigData method as an async generator.
readConfigData
class MyConfigSource implements ConfigSource { async *readConfigData() { yield { config: [{ context: 'example', data: { backend: { baseUrl: 'http://localhost' } } }] }; }} Copy
class MyConfigSource implements ConfigSource { async *readConfigData() { yield { config: [{ context: 'example', data: { backend: { baseUrl: 'http://localhost' } } }] }; }}
Optional
A source of configuration data.
Remarks
It is recommended to implement the
readConfigDatamethod as an async generator.Example