josdejong / workerpool

Offload tasks to a pool of workers on node.js and in the browser
Apache License 2.0
2.06k stars 147 forks source link

Update type definitions with the new 'Transfer' options #381

Closed Fzlw closed 1 year ago

Fzlw commented 1 year ago

Hello, dear author. I have a problem with TypeScript, Can you update @types/workerpool on Transfer support

josdejong commented 1 year ago

Thanks for reporting.

Anyone able to create a PR to update the type definitions at definitely typed, or move them inside the library? Help would be welcome.

Michsior14 commented 1 year ago

Types updated at definitely typed (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64339), additionally I am playing around with full TS migration for the project, but haven't time to finish it yet.

josdejong commented 1 year ago

Thanks a lot Michał.

I am playing around with full TS migration for the project, but haven't time to finish it yet.

That sounds really promising, good to know!