-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Hi guys, I added Typescript into my k6 scripts and I'm finding it difficult to extend the __ENV type. There are some __ENV variables I defined to be a number, but Typescript will define the value as a string rather than a number due to this type definition
// global.d.ts
declare global {
const __ENV: { [name: string]: string };
}
Is there a way for me to extend the __ENV type definition? One thing I tried was defining my own global.d.ts file with the following:
declare global {
namespace __ENV {
const VUS: number
}
}
but that didn't work.
Metadata
Metadata
Assignees
Labels
No labels