Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript types for this lib #2

Open
NikitaYVolkov opened this issue Dec 13, 2023 · 1 comment
Open

Typescript types for this lib #2

NikitaYVolkov opened this issue Dec 13, 2023 · 1 comment

Comments

@NikitaYVolkov
Copy link

Hello,

Could you please tell if there are any plans to add TS types for this library?
Also, do you plan to host this library as npm package, e.g. at npmjs.com?

Thank you

@ughitsaaron
Copy link

@NikitaYVolkov, assuming you already solved this but for others, I tried this as a solution and it seems to work,

/* types.ts */
declare module 'https://jslib.k6.io/url/1.0.0/index.js' {
  export { URL } from 'url';
}
Screenshot 2024-01-29 at 5 50 57 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants