Skip to content

Environment

EnvironmentSDK

EnvironmentSDK = object

Utilities to interact with the environment.

Properties

getVar()

getVar: (name: string) => string | undefined

Get the value of an environment variable.

Parameters
ParameterTypeDescription
namestringThe name of the environment variable.
Returns

string | undefined

The value of the environment variable.

getVars()

getVars: () => EnvironmentVariable[]

Get all environment variables available in the global environment and the selected environment.

Returns

EnvironmentVariable[]

All environment variables.


EnvironmentVariable

EnvironmentVariable = object

Represents an environment variable.

Properties

isSecret

isSecret: boolean

Whether the environment variable is a secret.

name

name: string

The name of the environment variable.

value

value: string

The value of the environment variable.