TypeScript Version: 3.3.3
postMessage declartion in lib.dom.d.ts is
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
Its second parameter targetOrigin is set as a must.
But I found samples on MDN about postMessage don't pass it.
There may lack a ? after targetOrigin.
When I set use strict of comile options true and don't pass targetOrigin, compiler will warn me ,which makes me X﹏X.