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.
TypeScript Version: 3.3.3
postMessagedeclartion inlib.dom.d.tsisIts second parameter
targetOriginis set as a must.But I found samples on MDN about
postMessagedon't pass it.There may lack a
?aftertargetOrigin.When I set
use strictof comile options true and don't passtargetOrigin, compiler will warn me ,which makes me X﹏X.