Cloud API Overview > @adpt/cloud > renameEnvVars
renameEnvVars() function
Renames all variables in e based on mapping
Signature:
export declare function renameEnvVars(e: Environment, mapping: {
[orig: string]: string;
}): Environment;
Parameters
| Parameter | Type | Description |
|---|---|---|
| e | Environment | Environment to rename |
| mapping | { [orig: string]: string;} | Object with (key, value) pairs that are (originalName, newName) pairs. |
Returns:
A new Environment object with all variables renamed according to mapping