Cloud API Overview > @adpt/cloud > updateEnvVars
updateEnvVars() function
Updates the names and/or values of variables in an Environment
Signature:
export declare function updateEnvVars(e: Environment, upd: (name: string, value: string) => EnvPair | undefined): Environment;
Parameters
Parameter | Type | Description |
---|---|---|
e | Environment | The source Environment |
upd | (name: string, value: string) => EnvPair | undefined | Updated function that returns an EnvPair with the new name and value of the variable |
Returns:
- A new Environment that is identical to
e
except for the updates done byupd