nanolith icon indicating copy to clipboard operation
nanolith copied to clipboard

Strict typing for `sendMessage` and `onMessage` everywhere

Open mstephen19 opened this issue 1 year ago • 0 comments

We've got commented out a type named Acceptable, which encompasses all values that can be send via parentPort.postMessage and worker.postMessage without hitting a runtime error. Instead of any, this type should be used instead for the sendMessage and onMessage methods on various implementations.

mstephen19 avatar May 19 '23 01:05 mstephen19