Skip to content

Commit a6c1bb9

Browse files
Update src/shared/telemetry/util.ts
Co-authored-by: Nikolas Komonen <[email protected]>
1 parent 582b970 commit a6c1bb9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/telemetry/util.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ export async function getUserAgent(
9292
return pairs.join(' ')
9393
}
9494

95-
// Although this is similair to getEnvType() in authUtil files, added new.
96-
// auth util can be upadate to get ComputeEnv
95+
type EnvType = 'classic' | 'codecatalyst' | ...
9796

98-
export function getComputeEnvType() {
97+
export function getComputeEnvType(): EnvType {
9998
// Compute ENV could be one of the following
10099
// "cloud9"|"cloud9-codecatalyst"|"cloud9-ec2"|"codecatalyst"|"ec2"|"local"|"sagemaker"|"ssh"|"test"|"web"|"wsl"|"other"|string;
101100

0 commit comments

Comments
 (0)