Skip to main content

ConfigReader.getNumber()

Home > @backstage/config > ConfigReader > getNumber

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

Signature:

getNumber(key: string): number;

Parameters

Parameter

Type

Description

key

string

**Returns:**

number