Interface: FpEnvironment
Defined in: 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.
Methods
Section titled “Methods”get(name): string | undefined;Defined in: fp-api.d.ts:289
Returns the variable value, or undefined if not set.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |
Returns
Section titled “Returns”string | undefined
remove()
Section titled “remove()”remove(name): void;Defined in: fp-api.d.ts:298
Removes a variable.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |
Returns
Section titled “Returns”void
set(name, value): void;Defined in: fp-api.d.ts:295
Sets a variable. Values are coerced to strings. Takes effect after the request completes.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |
value | string |
Returns
Section titled “Returns”void
toObject()
Section titled “toObject()”toObject(): Record<string, string>;Defined in: fp-api.d.ts:301
Snapshot of all environment variables.
Returns
Section titled “Returns”Record<string, string>