Skip to main content
Version: Next

ConfigReader.getOptionalBoolean()

Home > @backstage/config > ConfigReader > getOptionalBoolean

Reads a configuration value at the given key, expecting it to be a boolean.

Signature:

getOptionalBoolean(key: string): boolean | undefined;

Parameters

Parameter

Type

Description

key

string

**Returns:**

boolean | undefined