TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Publish `@types/webworker`?

Open saschanaz opened this issue 2 years ago • 5 comments
trafficstars

https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/b7a45db8fbf3b54d47e4af1109efd9f053db1ef1/deploy/createTypesPackages.js#L14-L51

Only shared/serviceworker have the packages but not the dedicated worker.

saschanaz avatar Feb 03 '23 06:02 saschanaz

ref #1482 ?

HolgerJeromin avatar Feb 03 '23 08:02 HolgerJeromin

I did a look through the commits and I don't see a reason why it wasn't generated - there might be debate inside teams ( @sandersn could you maybe search for "@types/webworker" ? ) but otherwise I think it's fine to add.

Maybe I just forgot that one package?

orta avatar Feb 03 '23 08:02 orta

@orta Here's the only comment on Teams, from you on 9 July 2021:

I've set up the rest of the @types/web* packages to the lib-dom-generator. The repo will ship @types/web (DOM + essentials) @types/sharedworker (used by extensions) @types/webworkers ("threads" for JavaScript) @types/serviceworkers (the abstraction PWAs use to redirect HTTP calls) and @types/audioworklets (Audio processing BG threads)

So at the time you said you set it up, at least.

sandersn avatar Feb 03 '23 15:02 sandersn

Thanks sire! Yeah, I'd say that's an omission, adding the new package would require someone from the TS team to accept but we should do that

orta avatar Feb 03 '23 16:02 orta

As of now, there is no straightforward way to define standard webworker project using TypeScript-DOM-lib-generator. Considering this repo is the main one to use for typescript projects in general, please consider resolving the outstanding issues asap so we can use @types/webworker (+ @typescript/lib-webworker) as a dependency and have a simple configuration in tsconfig.lib.

jozefchutka avatar May 08 '23 07:05 jozefchutka

Hello @saschanaz Is this issue still open? If yes I will open a pr :)

Bashamega avatar Mar 28 '25 05:03 Bashamega

Please feel free!

saschanaz avatar Mar 29 '25 17:03 saschanaz