nanolith
nanolith copied to clipboard
Strict typing for `sendMessage` and `onMessage` everywhere
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.