Home > @infiniteobjects/core-library-node > Environment > getOrThrow
Gets the environment key casted to a primitive or throws an error
Signature:
static getOrThrow(key: string): string | boolean | number | null;
Parameter | Type | Description |
---|---|---|
key | string |
Returns:
string | boolean | number | null
if the key does not exist in the environment