k6-jslib-aws icon indicating copy to clipboard operation
k6-jslib-aws copied to clipboard

✨ build typescript types

Open dudeofawesome opened this issue 9 months ago • 1 comments

This is a WIP PR to generate Typescript types from the source files, as suggested here.

However, as is, these types would not be useful as they would not be distributed with the JS via the CDN.

There are a few possible solutions to work around this:

  • Update the CDN to support the X-TypeScript-Types header from Deno, as I described here. This does have the downside of not being native to Typescript though (and requiring an extra editor extension because of that).
  • Add the generated types to the @types/k6 package, under a declare module. This would require altering the generated types from this PR to enable embedding like that.

dudeofawesome avatar Feb 06 '25 02:02 dudeofawesome

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 06 '25 02:02 CLAassistant