nuxt-modules / partytown

Partytown integration for Nuxt. Run third-party scripts from a web worker.
MIT License
318 stars 8 forks source link

Typescript config type #245

Closed oleghalin closed 1 year ago

oleghalin commented 1 year ago

I think it should be something like (url: URL, ....) => URL, instead of string

https://github.com/nuxt-modules/partytown/blob/6272be253c90c7dca2a925fe9bcdf31bf25ec927/src/module.ts#L38

danielroe commented 1 year ago

It should indeed, but it needs to be passed as a string of raw code, as the comment above it says. (PR always welcome to make this clearer.)