google-closure-compiler 20250412.0.0-nightly → 20250413.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -30
- package/cli.js +3 -4
- package/externs/browser/decorators.js +276 -0
- package/externs/browser/deprecated.js +58 -0
- package/externs/browser/es6_proxy.js +143 -0
- package/externs/browser/fetchapi.js +449 -0
- package/externs/browser/fido.js +94 -0
- package/externs/browser/flash.js +226 -0
- package/externs/browser/gecko_css.js +126 -0
- package/externs/browser/gecko_dom.js +479 -0
- package/externs/browser/gecko_event.js +86 -0
- package/externs/browser/gecko_xml.js +73 -0
- package/externs/browser/google_legacy.js +31 -0
- package/externs/browser/html5.js +6647 -0
- package/externs/browser/ie_css.js +270 -0
- package/externs/browser/ie_dom.js +1232 -0
- package/externs/browser/ie_event.js +310 -0
- package/externs/browser/ie_vml.js +77 -0
- package/externs/browser/intersection_observer.js +178 -0
- package/externs/browser/intl.js +602 -0
- package/externs/browser/iphone.js +204 -0
- package/externs/browser/mediakeys.js +305 -0
- package/externs/browser/mediasource.js +155 -0
- package/externs/browser/nonstandard_anim_timing.js +97 -0
- package/externs/browser/nonstandard_audio.js +82 -0
- package/externs/browser/nonstandard_console.js +75 -0
- package/externs/browser/nonstandard_fileapi.js +1066 -0
- package/externs/browser/nonstandard_indexeddb.js +78 -0
- package/externs/browser/nonstandard_navigation_timing.js +38 -0
- package/externs/browser/nonstandard_selection.js +80 -0
- package/externs/browser/page_visibility.js +28 -0
- package/externs/browser/streamsapi.js +593 -0
- package/externs/browser/svg.js +10016 -0
- package/externs/browser/url.js +202 -0
- package/externs/browser/v8.js +134 -0
- package/externs/browser/w3c_abort.js +89 -0
- package/externs/browser/w3c_anim_timing.js +49 -0
- package/externs/browser/w3c_aria_mixin.js +286 -0
- package/externs/browser/w3c_audio.js +1660 -0
- package/externs/browser/w3c_batterystatus.js +85 -0
- package/externs/browser/w3c_clipboard.js +74 -0
- package/externs/browser/w3c_clipboardevent.js +47 -0
- package/externs/browser/w3c_composition_event.js +93 -0
- package/externs/browser/w3c_css.js +3790 -0
- package/externs/browser/w3c_css3d.js +199 -0
- package/externs/browser/w3c_device_sensor_event.js +122 -0
- package/externs/browser/w3c_dom1.js +1160 -0
- package/externs/browser/w3c_dom2.js +3151 -0
- package/externs/browser/w3c_dom3.js +555 -0
- package/externs/browser/w3c_dom4.js +289 -0
- package/externs/browser/w3c_elementtraversal.js +116 -0
- package/externs/browser/w3c_event.js +607 -0
- package/externs/browser/w3c_event3.js +77 -0
- package/externs/browser/w3c_eventsource.js +110 -0
- package/externs/browser/w3c_fileapi.js +302 -0
- package/externs/browser/w3c_gamepad.js +113 -0
- package/externs/browser/w3c_geolocation.js +130 -0
- package/externs/browser/w3c_geometry1.js +899 -0
- package/externs/browser/w3c_indexeddb.js +771 -0
- package/externs/browser/w3c_keyboardlock.js +47 -0
- package/externs/browser/w3c_mediacapabilities.js +206 -0
- package/externs/browser/w3c_midi.js +301 -0
- package/externs/browser/w3c_navigation.js +72 -0
- package/externs/browser/w3c_navigation_timing.js +437 -0
- package/externs/browser/w3c_netinfo.js +85 -0
- package/externs/browser/w3c_payment_request.js +401 -0
- package/externs/browser/w3c_permissions.js +112 -0
- package/externs/browser/w3c_permissions_policy.js +78 -0
- package/externs/browser/w3c_pointer_events.js +163 -0
- package/externs/browser/w3c_pointerlock.js +63 -0
- package/externs/browser/w3c_range.js +284 -0
- package/externs/browser/w3c_referrer_policy.js +36 -0
- package/externs/browser/w3c_requestidlecallback.js +76 -0
- package/externs/browser/w3c_rtc.js +3882 -0
- package/externs/browser/w3c_screen_orientation.js +53 -0
- package/externs/browser/w3c_screen_wake_lock.js +58 -0
- package/externs/browser/w3c_selection.js +209 -0
- package/externs/browser/w3c_selectors.js +113 -0
- package/externs/browser/w3c_serviceworker.js +739 -0
- package/externs/browser/w3c_speech.js +426 -0
- package/externs/browser/w3c_touch_event.js +296 -0
- package/externs/browser/w3c_trusted_types.js +142 -0
- package/externs/browser/w3c_vibration.js +38 -0
- package/externs/browser/w3c_webcodecs.js +1473 -0
- package/externs/browser/w3c_webcrypto.js +839 -0
- package/externs/browser/w3c_worklets.js +54 -0
- package/externs/browser/w3c_xml.js +533 -0
- package/externs/browser/web_animations.js +452 -0
- package/externs/browser/web_app_manifest.js +50 -0
- package/externs/browser/webassembly.js +223 -0
- package/externs/browser/webgl.js +3409 -0
- package/externs/browser/webgl2.js +2727 -0
- package/externs/browser/webgl2_compute.js +1609 -0
- package/externs/browser/webkit_css.js +456 -0
- package/externs/browser/webkit_dom.js +118 -0
- package/externs/browser/webkit_event.js +46 -0
- package/externs/browser/webkit_notifications.js +258 -0
- package/externs/browser/webkit_usercontent.js +55 -0
- package/externs/browser/weblocksapi.js +125 -0
- package/externs/browser/webstorage.js +171 -0
- package/externs/browser/whatwg_bitmap_context.js +37 -0
- package/externs/browser/whatwg_console.js +152 -0
- package/externs/browser/whatwg_encoding.js +99 -0
- package/externs/browser/whatwg_file_system.js +296 -0
- package/externs/browser/wicg_attribution_reporting.js +42 -0
- package/externs/browser/wicg_compression_stream.js +60 -0
- package/externs/browser/wicg_constructable_stylesheets.js +60 -0
- package/externs/browser/wicg_entries.js +169 -0
- package/externs/browser/wicg_file_handling.js +41 -0
- package/externs/browser/wicg_file_system_access.js +191 -0
- package/externs/browser/wicg_floc.js +41 -0
- package/externs/browser/wicg_ink.js +89 -0
- package/externs/browser/wicg_resizeobserver.js +100 -0
- package/externs/browser/wicg_scheduler.js +62 -0
- package/externs/browser/wicg_trust_token.js +89 -0
- package/externs/browser/wicg_uach.js +100 -0
- package/externs/browser/window.js +190 -0
- package/externs/es3.js +2716 -0
- package/externs/es5.js +284 -0
- package/externs/es6.js +2554 -0
- package/externs/es6_collections.js +323 -0
- package/index.js +13 -16
- package/lib/grunt/index.js +71 -92
- package/lib/grunt/vinyl-stream.js +12 -18
- package/lib/gulp/concat-to-json.js +30 -18
- package/lib/gulp/index.js +174 -181
- package/lib/gulp/json-to-vinyl.js +8 -8
- package/lib/node/{closure-compiler.js → index.js} +27 -51
- package/lib/utils.js +16 -14
- package/package.json +19 -16
- package/lib/logger.js +0 -89
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2019 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for console debugging facilities.
|
|
19
|
+
* https://console.spec.whatwg.org/
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @constructor
|
|
25
|
+
* @see https://console.spec.whatwg.org/
|
|
26
|
+
*/
|
|
27
|
+
function Console() {};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* If condition is false, perform Logger("error", data).
|
|
31
|
+
* @param {*} condition
|
|
32
|
+
* @param {...*} var_data
|
|
33
|
+
* @return {undefined}
|
|
34
|
+
*/
|
|
35
|
+
Console.prototype.assert = function(condition, var_data) {};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @return {undefined}
|
|
39
|
+
*/
|
|
40
|
+
Console.prototype.clear = function() {};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param {...*} var_data
|
|
44
|
+
* @return {undefined}
|
|
45
|
+
*/
|
|
46
|
+
Console.prototype.debug = function(var_data) {};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @param {...*} var_data
|
|
50
|
+
* @return {undefined}
|
|
51
|
+
*/
|
|
52
|
+
Console.prototype.error = function(var_data) {};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @param {...*} var_data
|
|
56
|
+
* @return {undefined}
|
|
57
|
+
*/
|
|
58
|
+
Console.prototype.info = function(var_data) {};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @param {...*} var_data
|
|
62
|
+
* @return {undefined}
|
|
63
|
+
*/
|
|
64
|
+
Console.prototype.log = function(var_data) {};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @param {!Object} tabularData
|
|
68
|
+
* @param {*=} properties
|
|
69
|
+
* @return {undefined}
|
|
70
|
+
*/
|
|
71
|
+
Console.prototype.table = function(tabularData, properties) {};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {...*} var_data
|
|
75
|
+
* @return {undefined}
|
|
76
|
+
*/
|
|
77
|
+
Console.prototype.trace = function(var_data) {};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @param {...*} var_data
|
|
81
|
+
* @return {undefined}
|
|
82
|
+
*/
|
|
83
|
+
Console.prototype.warn = function(var_data) {};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @param {*} item
|
|
87
|
+
* @return {undefined}
|
|
88
|
+
*/
|
|
89
|
+
Console.prototype.dir = function(item) {};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @param {...*} var_data
|
|
93
|
+
* @return {undefined}
|
|
94
|
+
*/
|
|
95
|
+
Console.prototype.dirxml = function(var_data) {};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @param {string=} label
|
|
99
|
+
* @return {undefined}
|
|
100
|
+
*/
|
|
101
|
+
Console.prototype.count = function(label) {};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @param {string=} label
|
|
105
|
+
* @return {undefined}
|
|
106
|
+
*/
|
|
107
|
+
Console.prototype.countReset = function(label) {};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param {...*} var_data
|
|
111
|
+
* @return {undefined}
|
|
112
|
+
*/
|
|
113
|
+
Console.prototype.group = function(var_data) {};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @param {...*} var_data
|
|
117
|
+
* @return {undefined}
|
|
118
|
+
*/
|
|
119
|
+
Console.prototype.groupCollapsed = function(var_data) {};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @return {undefined}
|
|
123
|
+
*/
|
|
124
|
+
Console.prototype.groupEnd = function() {};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @param {string} label
|
|
128
|
+
* @return {undefined}
|
|
129
|
+
*/
|
|
130
|
+
Console.prototype.time = function(label) {};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @param {string} label
|
|
134
|
+
* @param {...*} data
|
|
135
|
+
* @return {undefined}
|
|
136
|
+
*/
|
|
137
|
+
Console.prototype.timeLog = function(label, data) {};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param {string} label
|
|
141
|
+
* @return {undefined}
|
|
142
|
+
*/
|
|
143
|
+
Console.prototype.timeEnd = function(label) {};
|
|
144
|
+
|
|
145
|
+
/** @type {!Console} */
|
|
146
|
+
Window.prototype.console;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @type {!Console}
|
|
150
|
+
* @suppress {duplicate}
|
|
151
|
+
*/
|
|
152
|
+
var console;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for WHATWG's Encoding specification
|
|
19
|
+
* https://encoding.spec.whatwg.org
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @constructor
|
|
25
|
+
* @param {string=} encoding
|
|
26
|
+
* @param {Object=} options
|
|
27
|
+
*/
|
|
28
|
+
function TextDecoder(encoding, options) {}
|
|
29
|
+
|
|
30
|
+
/** @type {string} **/ TextDecoder.prototype.encoding;
|
|
31
|
+
/** @type {boolean} **/ TextDecoder.prototype.fatal;
|
|
32
|
+
/** @type {boolean} **/ TextDecoder.prototype.ignoreBOM;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @param {!BufferSource=} input
|
|
36
|
+
* @param {?Object=} options
|
|
37
|
+
* @return {string}
|
|
38
|
+
* @see https://encoding.spec.whatwg.org/#textdecoder
|
|
39
|
+
*/
|
|
40
|
+
TextDecoder.prototype.decode = function decode(input, options) {};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @constructor
|
|
44
|
+
* @param {string=} utfLabel
|
|
45
|
+
*/
|
|
46
|
+
function TextEncoder(utfLabel) {}
|
|
47
|
+
|
|
48
|
+
/** @type {string} **/ TextEncoder.prototype.encoding;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param {string=} input
|
|
52
|
+
* @return {!Uint8Array}
|
|
53
|
+
*/
|
|
54
|
+
TextEncoder.prototype.encode = function(input) {};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {string} input
|
|
58
|
+
* @param {!Uint8Array} uint8Array
|
|
59
|
+
* @return {{read: number, written: number}}
|
|
60
|
+
*/
|
|
61
|
+
TextEncoder.prototype.encodeInto = function(input, uint8Array) {};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @constructor
|
|
65
|
+
* @param {string=} encoding
|
|
66
|
+
* @param {Object=} options
|
|
67
|
+
*/
|
|
68
|
+
function TextDecoderStream(encoding, options) {}
|
|
69
|
+
|
|
70
|
+
/** @type {string} **/ TextDecoderStream.prototype.encoding;
|
|
71
|
+
/** @type {boolean} **/ TextDecoderStream.prototype.fatal;
|
|
72
|
+
/** @type {boolean} **/ TextDecoderStream.prototype.ignoreBOM;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @type {ReadableStream<string>}
|
|
76
|
+
*/
|
|
77
|
+
TextDecoderStream.prototype.readable;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @type {WritableStream<BufferSource>}
|
|
81
|
+
*/
|
|
82
|
+
TextDecoderStream.prototype.writable;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @constructor
|
|
86
|
+
*/
|
|
87
|
+
function TextEncoderStream() {}
|
|
88
|
+
|
|
89
|
+
/** @type {string} **/ TextEncoderStream.prototype.encoding;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @type {ReadableStream<Uint8Array>}
|
|
93
|
+
*/
|
|
94
|
+
TextEncoderStream.prototype.readable;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @type {WritableStream<string>}
|
|
98
|
+
*/
|
|
99
|
+
TextEncoderStream.prototype.writable;
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* File System
|
|
19
|
+
* Living Standard — Last Updated 24 January 2023
|
|
20
|
+
* @see https://fs.spec.whatwg.org/
|
|
21
|
+
* @externs
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {string}
|
|
28
|
+
* @see https://fs.spec.whatwg.org/#enumdef-filesystemhandlekind
|
|
29
|
+
*/
|
|
30
|
+
var FileSystemHandleKind;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @interface
|
|
35
|
+
* @see https://fs.spec.whatwg.org/#api-filesystemhandle
|
|
36
|
+
*/
|
|
37
|
+
var FileSystemHandle = function() {};
|
|
38
|
+
|
|
39
|
+
/** @const {!FileSystemHandleKind} */
|
|
40
|
+
FileSystemHandle.prototype.kind;
|
|
41
|
+
|
|
42
|
+
/** @const {string} */
|
|
43
|
+
FileSystemHandle.prototype.name;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @param {!FileSystemHandle} other
|
|
47
|
+
* @return {!Promise<boolean>}
|
|
48
|
+
*/
|
|
49
|
+
FileSystemHandle.prototype.isSameEntry = function(other) {};
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @record
|
|
54
|
+
* @struct
|
|
55
|
+
* @see https://fs.spec.whatwg.org/#dictdef-filesystemcreatewritableoptions
|
|
56
|
+
*/
|
|
57
|
+
var FileSystemCreateWritableOptions = function() {};
|
|
58
|
+
|
|
59
|
+
/** @type {undefined|boolean} */
|
|
60
|
+
FileSystemCreateWritableOptions.prototype.keepExistingData;
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @interface
|
|
65
|
+
* @extends {FileSystemHandle}
|
|
66
|
+
* @see https://fs.spec.whatwg.org/#filesystemfilehandle
|
|
67
|
+
*/
|
|
68
|
+
var FileSystemFileHandle = function() {};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @return {!Promise<!File>}
|
|
72
|
+
*/
|
|
73
|
+
FileSystemFileHandle.prototype.getFile = function() {};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {!FileSystemCreateWritableOptions=} opt_options
|
|
77
|
+
* @return {!Promise<!FileSystemWritableFileStream>}
|
|
78
|
+
*/
|
|
79
|
+
FileSystemFileHandle.prototype.createWritable = function(opt_options) {};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @return {!Promise<!FileSystemSyncAccessHandle>}
|
|
83
|
+
*/
|
|
84
|
+
FileSystemFileHandle.prototype.createSyncAccessHandle = function() {};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @return {!Promise<string>}
|
|
88
|
+
*/
|
|
89
|
+
FileSystemFileHandle.prototype.getUniqueId = function() {};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @record
|
|
94
|
+
* @struct
|
|
95
|
+
* @see https://fs.spec.whatwg.org/#dictdef-filesystemgetfileoptions
|
|
96
|
+
*/
|
|
97
|
+
var FileSystemGetFileOptions = function() {};
|
|
98
|
+
|
|
99
|
+
/** @type {undefined|boolean} */
|
|
100
|
+
FileSystemGetFileOptions.prototype.create;
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @record
|
|
105
|
+
* @struct
|
|
106
|
+
* @see https://fs.spec.whatwg.org/#dictdef-filesystemgetdirectoryoptions
|
|
107
|
+
*/
|
|
108
|
+
var FileSystemGetDirectoryOptions = function() {};
|
|
109
|
+
|
|
110
|
+
/** @type {undefined|boolean} */
|
|
111
|
+
FileSystemGetDirectoryOptions.prototype.create;
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @record
|
|
116
|
+
* @struct
|
|
117
|
+
* @see https://fs.spec.whatwg.org/#dictdef-filesystemremoveoptions
|
|
118
|
+
*/
|
|
119
|
+
var FileSystemRemoveOptions = function() {};
|
|
120
|
+
|
|
121
|
+
/** @type {undefined|boolean} */
|
|
122
|
+
FileSystemRemoveOptions.prototype.recursive;
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @interface
|
|
127
|
+
* @extends {FileSystemHandle}
|
|
128
|
+
* @extends {AsyncIterable<!Array<string|!FileSystemHandle>>}
|
|
129
|
+
* @see https://fs.spec.whatwg.org/#filesystemdirectoryhandle
|
|
130
|
+
*/
|
|
131
|
+
var FileSystemDirectoryHandle = function() {};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @param {string} name
|
|
135
|
+
* @param {!FileSystemGetFileOptions=} opt_options
|
|
136
|
+
* @return {!Promise<!FileSystemFileHandle>}
|
|
137
|
+
*/
|
|
138
|
+
FileSystemDirectoryHandle.prototype.getFileHandle = function(name, opt_options) {};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @param {string} name
|
|
142
|
+
* @param {!FileSystemGetDirectoryOptions=} opt_options
|
|
143
|
+
* @return {!Promise<!FileSystemDirectoryHandle>}
|
|
144
|
+
*/
|
|
145
|
+
FileSystemDirectoryHandle.prototype.getDirectoryHandle = function(name, opt_options) {};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @param {string} name
|
|
149
|
+
* @param {!FileSystemRemoveOptions=} opt_options
|
|
150
|
+
* @return {!Promise<void>}
|
|
151
|
+
*/
|
|
152
|
+
FileSystemDirectoryHandle.prototype.removeEntry = function(name, opt_options) {};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @param {!FileSystemHandle} possibleDescendant
|
|
156
|
+
* @return {!Promise<?Array<string>>}
|
|
157
|
+
*/
|
|
158
|
+
FileSystemDirectoryHandle.prototype.resolve = function(possibleDescendant) {};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @return {!AsyncIterable<!Array<string|!FileSystemHandle>>}
|
|
162
|
+
* @see https://fs.spec.whatwg.org/#api-filesystemdirectoryhandle-asynciterable
|
|
163
|
+
*/
|
|
164
|
+
FileSystemDirectoryHandle.prototype.entries = function() {};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @return {!AsyncIterable<!FileSystemHandle>}
|
|
168
|
+
* @see https://fs.spec.whatwg.org/#api-filesystemdirectoryhandle-asynciterable
|
|
169
|
+
*/
|
|
170
|
+
FileSystemDirectoryHandle.prototype.values = function() {};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @return {!AsyncIterable<string>}
|
|
174
|
+
* @see https://fs.spec.whatwg.org/#api-filesystemdirectoryhandle-asynciterable
|
|
175
|
+
*/
|
|
176
|
+
FileSystemDirectoryHandle.prototype.keys = function() {};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @typedef {string}
|
|
181
|
+
* @see https://fs.spec.whatwg.org/#enumdef-writecommandtype
|
|
182
|
+
*/
|
|
183
|
+
var WriteCommandType;
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @record
|
|
188
|
+
* @struct
|
|
189
|
+
* @see https://fs.spec.whatwg.org/#dictdef-writeparams
|
|
190
|
+
*/
|
|
191
|
+
var WriteParams = function() {};
|
|
192
|
+
|
|
193
|
+
/** @type {!WriteCommandType} */
|
|
194
|
+
WriteParams.prototype.type;
|
|
195
|
+
|
|
196
|
+
/** @type {undefined|?number} */
|
|
197
|
+
WriteParams.prototype.size;
|
|
198
|
+
|
|
199
|
+
/** @type {undefined|?number} */
|
|
200
|
+
WriteParams.prototype.position;
|
|
201
|
+
|
|
202
|
+
/** @type {undefined|!BufferSource|!Blob|?string} */
|
|
203
|
+
WriteParams.prototype.data;
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @typedef {!BufferSource|!Blob|string|!WriteParams}
|
|
208
|
+
* @see https://fs.spec.whatwg.org/#typedefdef-filesystemwritechunktype
|
|
209
|
+
*/
|
|
210
|
+
var FileSystemWriteChunkType;
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @constructor
|
|
215
|
+
* @extends {WritableStream}
|
|
216
|
+
* @see https://fs.spec.whatwg.org/#filesystemwritablefilestream
|
|
217
|
+
*/
|
|
218
|
+
var FileSystemWritableFileStream = function() {};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @param {!FileSystemWriteChunkType} data
|
|
222
|
+
* @return {!Promise<void>}
|
|
223
|
+
*/
|
|
224
|
+
FileSystemWritableFileStream.prototype.write = function(data) {};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @param {number} position
|
|
228
|
+
* @return {!Promise<void>}
|
|
229
|
+
*/
|
|
230
|
+
FileSystemWritableFileStream.prototype.seek = function(position) {};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @param {number} size
|
|
234
|
+
* @return {!Promise<void>}
|
|
235
|
+
*/
|
|
236
|
+
FileSystemWritableFileStream.prototype.truncate = function(size) {};
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @record
|
|
241
|
+
* @struct
|
|
242
|
+
* @see https://fs.spec.whatwg.org/#filesystemwritablefilestream
|
|
243
|
+
*/
|
|
244
|
+
var FileSystemReadWriteOptions = function() {};
|
|
245
|
+
|
|
246
|
+
/** @type {undefined|number} */
|
|
247
|
+
FileSystemReadWriteOptions.prototype.at;
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @interface
|
|
252
|
+
* @see https://fs.spec.whatwg.org/#filesystemsyncaccesshandle
|
|
253
|
+
*/
|
|
254
|
+
var FileSystemSyncAccessHandle = function() {};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @param {!BufferSource} buffer
|
|
258
|
+
* @param {!FileSystemReadWriteOptions=} opt_options
|
|
259
|
+
* @return {number}
|
|
260
|
+
*/
|
|
261
|
+
FileSystemSyncAccessHandle.prototype.read = function(buffer, opt_options) {};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @param {!BufferSource} buffer
|
|
265
|
+
* @param {!FileSystemReadWriteOptions=} opt_options
|
|
266
|
+
* @return {number}
|
|
267
|
+
*/
|
|
268
|
+
FileSystemSyncAccessHandle.prototype.write = function(buffer, opt_options) {};
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @param {number} newSize
|
|
272
|
+
* @return {void}
|
|
273
|
+
*/
|
|
274
|
+
FileSystemSyncAccessHandle.prototype.truncate = function(newSize) {};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @return {number}
|
|
278
|
+
*/
|
|
279
|
+
FileSystemSyncAccessHandle.prototype.getSize = function() {};
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @return {void}
|
|
283
|
+
*/
|
|
284
|
+
FileSystemSyncAccessHandle.prototype.flush = function() {};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @return {void}
|
|
288
|
+
*/
|
|
289
|
+
FileSystemSyncAccessHandle.prototype.close = function() {};
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @return {!Promise<!FileSystemDirectoryHandle>}
|
|
294
|
+
* @see https://fs.spec.whatwg.org/#sandboxed-filesystem
|
|
295
|
+
*/
|
|
296
|
+
StorageManager.prototype.getDirectory = function() {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview The spec of the Attribution Reporting API.
|
|
19
|
+
* @see https://github.com/WICG/attribution-reporting-api
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @see https://wicg.github.io/attribution-reporting-api/#dictdef-attributionreportingrequestoptions
|
|
25
|
+
* @record
|
|
26
|
+
* @struct
|
|
27
|
+
*/
|
|
28
|
+
function AttributionReportingRequestOptions() {}
|
|
29
|
+
|
|
30
|
+
/** @type {boolean} */
|
|
31
|
+
AttributionReportingRequestOptions.prototype.eventSourceEligible;
|
|
32
|
+
|
|
33
|
+
/** @type {boolean} */
|
|
34
|
+
AttributionReportingRequestOptions.prototype.triggerEligible;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {!AttributionReportingRequestOptions=} options The request options to
|
|
38
|
+
* pass eligibility signal for source or trigger registration via XHR.
|
|
39
|
+
* @return {void}
|
|
40
|
+
* @see https://wicg.github.io/attribution-reporting-api/#dom-xmlhttprequest-setattributionreporting
|
|
41
|
+
*/
|
|
42
|
+
XMLHttpRequest.prototype.setAttributionReporting = function(options) {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2021 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview APIs used to compress and decompress streams of data.
|
|
19
|
+
* @see https://wicg.github.io/compression
|
|
20
|
+
* @see https://github.com/WICG/compression/blob/master/explainer.md
|
|
21
|
+
* @externs
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @constructor
|
|
26
|
+
* @see https://wicg.github.io/compression/#compressionstream
|
|
27
|
+
* @param {string} format
|
|
28
|
+
* @see https://wicg.github.io/compression/#supported-formats
|
|
29
|
+
* @template IN_VALUE, OUT_VALUE
|
|
30
|
+
*/
|
|
31
|
+
function CompressionStream(format) {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @type {!ReadableStream<IN_VALUE>}
|
|
35
|
+
*/
|
|
36
|
+
CompressionStream.prototype.readable;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {!WritableStream<OUT_VALUE>}
|
|
40
|
+
*/
|
|
41
|
+
CompressionStream.prototype.writable;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @constructor
|
|
45
|
+
* @see https://wicg.github.io/compression/#decompression-stream
|
|
46
|
+
* @param {string} format
|
|
47
|
+
* @see https://wicg.github.io/compression/#supported-formats
|
|
48
|
+
* @template IN_VALUE, OUT_VALUE
|
|
49
|
+
*/
|
|
50
|
+
function DecompressionStream(format) {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {!ReadableStream<IN_VALUE>}
|
|
54
|
+
*/
|
|
55
|
+
DecompressionStream.prototype.readable;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @type {!WritableStream<OUT_VALUE>}
|
|
59
|
+
*/
|
|
60
|
+
DecompressionStream.prototype.writable;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2021 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @fileoverview The current draft spec of constructable stylesheets.
|
|
18
|
+
* @see https://wicg.github.io/construct-stylesheets/
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
// https://wicg.github.io/construct-stylesheets/#dictdef-cssstylesheetinit
|
|
24
|
+
/** @type {(undefined|MediaList|string)} */
|
|
25
|
+
CSSStyleSheetInit.prototype.media;
|
|
26
|
+
|
|
27
|
+
/** @type {(undefined|string)} */
|
|
28
|
+
CSSStyleSheetInit.prototype.title;
|
|
29
|
+
|
|
30
|
+
/** @type {(undefined|boolean)} */
|
|
31
|
+
CSSStyleSheetInit.prototype.alternate;
|
|
32
|
+
|
|
33
|
+
/** @type {(undefined|boolean)} */
|
|
34
|
+
CSSStyleSheetInit.prototype.disabled;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} text
|
|
38
|
+
* @return {!Promise<!CSSStyleSheet>}
|
|
39
|
+
* @see https://wicg.github.io/construct-stylesheets/#dom-cssstylesheet-replace
|
|
40
|
+
*/
|
|
41
|
+
CSSStyleSheet.prototype.replace = function(text) {};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} text
|
|
45
|
+
* @return {void}
|
|
46
|
+
* @see https://wicg.github.io/construct-stylesheets/#dom-cssstylesheet-replacesync
|
|
47
|
+
*/
|
|
48
|
+
CSSStyleSheet.prototype.replaceSync = function(text) {};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @type {!Array<!CSSStyleSheet>}
|
|
52
|
+
* @see https://wicg.github.io/construct-stylesheets/#dom-documentorshadowroot-adoptedstylesheets
|
|
53
|
+
*/
|
|
54
|
+
Document.prototype.adoptedStyleSheets;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @type {!Array<!CSSStyleSheet>}
|
|
58
|
+
* @see https://wicg.github.io/construct-stylesheets/#dom-documentorshadowroot-adoptedstylesheets
|
|
59
|
+
*/
|
|
60
|
+
ShadowRoot.prototype.adoptedStyleSheets;
|