Skip to main content
Version: Next

ConfigReader.getBoolean()

Home > @backstage/config > ConfigReader > getBoolean

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

Signature:

getBoolean(key: string): boolean;

Parameters

Parameter

Type

Description

key

string

**Returns:**

boolean