Skip to main content

ConfigReader.get()

Home > @backstage/config > ConfigReader > get

Same as getOptional, but will throw an error if there's no value for the given key.

Signature:

get<T = JsonValue>(key?: string): T;

Parameters

ParameterTypeDescription
keystring(Optional)

Returns:

T