Skip to main content

ConfigReader.getOptionalConfig()

Home > @backstage/config > ConfigReader > getOptionalConfig

Creates a sub-view of the configuration object. The configuration value at the position of the provided key must be an object.

Signature:

getOptionalConfig(key: string): ConfigReader | undefined;

Parameters

ParameterTypeDescription
keystring

Returns:

ConfigReader | undefined