Skip to main content
Version: Next

ConfigReader.getOptionalNumber()

Home > @backstage/config > ConfigReader > getOptionalNumber

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

Signature:

getOptionalNumber(key: string): number | undefined;

Parameters

Parameter

Type

Description

key

string

**Returns:**

number | undefined