Skip to content

Commit 73ff4fa

Browse files
refactor(types): replace Record with mapped types
1 parent 9859602 commit 73ff4fa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/resources/apps/apps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export namespace AppListResponse {
5757
/**
5858
* Environment variables configured for this app version
5959
*/
60-
env_vars?: Record<string, string>;
60+
env_vars?: { [key: string]: string };
6161
}
6262
}
6363

src/resources/apps/deployments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export interface DeploymentCreateParams {
156156
* Map of environment variables to set for the deployed application. Each key-value
157157
* pair represents an environment variable.
158158
*/
159-
env_vars?: Record<string, string>;
159+
env_vars?: { [key: string]: string };
160160

161161
/**
162162
* Allow overwriting an existing app version

src/resources/deployments.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export namespace DeploymentStateEvent {
110110
/**
111111
* Environment variables configured for this deployment
112112
*/
113-
env_vars?: Record<string, string>;
113+
env_vars?: { [key: string]: string };
114114

115115
/**
116116
* Status reason
@@ -156,7 +156,7 @@ export interface DeploymentCreateResponse {
156156
/**
157157
* Environment variables configured for this deployment
158158
*/
159-
env_vars?: Record<string, string>;
159+
env_vars?: { [key: string]: string };
160160

161161
/**
162162
* Status reason
@@ -201,7 +201,7 @@ export interface DeploymentRetrieveResponse {
201201
/**
202202
* Environment variables configured for this deployment
203203
*/
204-
env_vars?: Record<string, string>;
204+
env_vars?: { [key: string]: string };
205205

206206
/**
207207
* Status reason
@@ -266,7 +266,7 @@ export namespace DeploymentFollowResponse {
266266
/**
267267
* Environment variables configured for this app version
268268
*/
269-
env_vars?: Record<string, string>;
269+
env_vars?: { [key: string]: string };
270270
}
271271

272272
export namespace AppVersionSummaryEvent {
@@ -297,7 +297,7 @@ export interface DeploymentCreateParams {
297297
* Map of environment variables to set for the deployed application. Each key-value
298298
* pair represents an environment variable.
299299
*/
300-
env_vars?: Record<string, string>;
300+
env_vars?: { [key: string]: string };
301301

302302
/**
303303
* Allow overwriting an existing app version

0 commit comments

Comments
 (0)