You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
64
+
*
65
+
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
66
+
*
67
+
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
68
+
*
69
+
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
70
+
*
71
+
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
72
+
*/
73
+
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
74
+
75
+
/** Moves the focus to the window's browsing context, if any. */
76
+
declare function focus(): void;
77
+
78
+
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
79
+
80
+
declare var console: Console;
81
+
82
+
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
83
+
declare namespace CSS {
84
+
function escape(ident: string): string;
85
+
function supports(property: string, value: string): boolean;
86
+
function supports(conditionText: string): boolean;
"A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.",
Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
119
+
120
+
Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
121
+
122
+
A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
123
+
124
+
If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
125
+
126
+
Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
127
+
"""
128
+
|>String.trim_trailing(),
129
+
line_start: 49,
130
+
line_end: 60
131
+
},
132
+
%GlobalFunction{
133
+
name: "focus",
134
+
doc: "Moves the focus to the window's browsing context, if any.",
135
+
line_start: 62,
136
+
line_end: 63
137
+
},
138
+
%GlobalFunction{
139
+
name: "requestAnimationFrame",
140
+
line_start: 65,
141
+
line_end: 65
142
+
},
143
+
%GlobalVariable{
144
+
name: "console",
145
+
doc: nil,
146
+
line_start: 67,
147
+
line_end: 67
148
+
},
149
+
%Namespace{
150
+
name: "CSS",
151
+
doc:
152
+
"Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface.",
0 commit comments