Replace eventMessageChannel with clearer implementation

This commit is contained in:
hensm
2022-04-27 16:17:33 +01:00
parent 234280f5ec
commit 5e2d9a2fbc
8 changed files with 132 additions and 110 deletions

View File

@@ -5,5 +5,5 @@
*/
export interface TypedMessagePort<T> extends MessagePort {
postMessage(message: T, transfer: Transferable[]): void;
postMessage(message: T, options?: PostMessageOptions): void;
postMessage(message: T, options?: StructuredSerializeOptions): void;
}