Strict typing for sendMessage
and onMessage
everywhere
#73
Labels
improvement
An existing feature can be improved
sendMessage
and onMessage
everywhere
#73
We've got commented out a type named
Acceptable
, which encompasses all values that can be send viaparentPort.postMessage
andworker.postMessage
without hitting a runtime error. Instead ofany
, this type should be used instead for thesendMessage
andonMessage
methods on various implementations.The text was updated successfully, but these errors were encountered: