Pular para o conteúdo

Interface: FpEnvironment

Definido em: fp-api.d.ts:287

Persistent environment variables for the active environment.

Changes are written back to the environment file (*.env.json) after the request completes. Both phases can read and write.

get(name): string | undefined;

Definido em: fp-api.d.ts:289

Returns the variable value, or undefined if not set.

ParameterTipo
namestring

string | undefined


remove(name): void;

Definido em: fp-api.d.ts:298

Removes a variable.

ParameterTipo
namestring

void


set(name, value): void;

Definido em: fp-api.d.ts:295

Sets a variable. Values are coerced to strings. Takes effect after the request completes.

ParameterTipo
namestring
valuestring

void


toObject(): Record<string, string>;

Definido em: fp-api.d.ts:301

Snapshot of all environment variables.

Record<string, string>