Skip to main content
Version: Next

ConfigReader.getString()

Home > @backstage/config > ConfigReader > getString

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

Signature:

getString(key: string): string;

Parameters

Parameter

Type

Description

key

string

**Returns:**

string