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.
Métodos
Section titled “Métodos”get(name): string | undefined;Definido em: fp-api.d.ts:289
Returns the variable value, or undefined if not set.
Parameters
Section titled “Parameters”| Parameter | Tipo |
|---|---|
name | string |
Retorna
Section titled “Retorna”string | undefined
remove()
Section titled “remove()”remove(name): void;Definido em: fp-api.d.ts:298
Removes a variable.
Parameters
Section titled “Parameters”| Parameter | Tipo |
|---|---|
name | string |
Retorna
Section titled “Retorna”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.
Parameters
Section titled “Parameters”| Parameter | Tipo |
|---|---|
name | string |
value | string |
Retorna
Section titled “Retorna”void
toObject()
Section titled “toObject()”toObject(): Record<string, string>;Definido em: fp-api.d.ts:301
Snapshot of all environment variables.
Retorna
Section titled “Retorna”Record<string, string>