Skip to content

Commit 3448126

Browse files
committed
fix: type experiments endpoint to avoid unsafe any assignment
1 parent 39bc4dd commit 3448126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deployment/deploymentManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ export class DeploymentManager implements vscode.Disposable {
260260
private updateExperimentContexts(): void {
261261
this.client
262262
.getAxiosInstance()
263-
.get("/api/v2/experiments")
263+
.get<string[]>("/api/v2/experiments")
264264
.then((resp) => {
265-
const experiments: string[] = resp.data ?? [];
265+
const experiments = resp.data ?? [];
266266
this.contextManager.set(
267267
"coder.agentsEnabled",
268268
experiments.includes("agents"),

0 commit comments

Comments
 (0)