Code review comments

This commit is contained in:
Rimil Dey 2022-04-19 16:53:06 +05:30
parent 242dc7cca2
commit 24cb572a11
2 changed files with 2 additions and 2 deletions

View File

@ -673,7 +673,7 @@ export const GLOBAL_FUNCTIONS = {
postMessageToTargetWindow: { postMessageToTargetWindow: {
"!doc": "!doc":
"Establish cross-origin communication between Window objects/page and iframes", "Establish cross-origin communication between Window objects/page and iframes",
"!type": "fn(message: any, targetOrigin: any, transfer: [any])", "!type": "fn(message: any, targetOrigin: string, transfer: [any])",
}, },
}; };

View File

@ -261,7 +261,7 @@ const DATA_TREE_FUNCTIONS: Record<
}; };
}, },
}, },
postMessageToTargetWindow: function(message: any, targetOrigin: string) { postMessageToTargetWindow: function(message: unknown, targetOrigin: string) {
return { return {
type: ActionTriggerType.POST_MESSAGE, type: ActionTriggerType.POST_MESSAGE,
payload: { payload: {