@rindo/core 2.16.0-beta.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.
Files changed (229) hide show
  1. package/LICENSE.md +27 -0
  2. package/bin/rindo +57 -0
  3. package/cli/index.cjs +1784 -0
  4. package/cli/index.d.ts +15 -0
  5. package/cli/index.js +1758 -0
  6. package/cli/package.json +14 -0
  7. package/compiler/lib.d.ts +24 -0
  8. package/compiler/lib.dom.d.ts +17791 -0
  9. package/compiler/lib.dom.iterable.d.ts +323 -0
  10. package/compiler/lib.es2015.collection.d.ts +89 -0
  11. package/compiler/lib.es2015.core.d.ts +559 -0
  12. package/compiler/lib.es2015.d.ts +30 -0
  13. package/compiler/lib.es2015.generator.d.ts +79 -0
  14. package/compiler/lib.es2015.iterable.d.ts +497 -0
  15. package/compiler/lib.es2015.promise.d.ts +78 -0
  16. package/compiler/lib.es2015.proxy.d.ts +41 -0
  17. package/compiler/lib.es2015.reflect.d.ts +123 -0
  18. package/compiler/lib.es2015.symbol.d.ts +48 -0
  19. package/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
  20. package/compiler/lib.es2016.array.include.d.ts +118 -0
  21. package/compiler/lib.es2016.d.ts +22 -0
  22. package/compiler/lib.es2016.full.d.ts +25 -0
  23. package/compiler/lib.es2017.d.ts +26 -0
  24. package/compiler/lib.es2017.full.d.ts +25 -0
  25. package/compiler/lib.es2017.intl.d.ts +32 -0
  26. package/compiler/lib.es2017.object.d.ts +51 -0
  27. package/compiler/lib.es2017.sharedmemory.d.ts +137 -0
  28. package/compiler/lib.es2017.string.d.ts +47 -0
  29. package/compiler/lib.es2017.typedarrays.d.ts +55 -0
  30. package/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
  31. package/compiler/lib.es2018.asynciterable.d.ts +45 -0
  32. package/compiler/lib.es2018.d.ts +26 -0
  33. package/compiler/lib.es2018.full.d.ts +25 -0
  34. package/compiler/lib.es2018.intl.d.ts +73 -0
  35. package/compiler/lib.es2018.promise.d.ts +32 -0
  36. package/compiler/lib.es2018.regexp.d.ts +39 -0
  37. package/compiler/lib.es2019.array.d.ts +85 -0
  38. package/compiler/lib.es2019.d.ts +25 -0
  39. package/compiler/lib.es2019.full.d.ts +25 -0
  40. package/compiler/lib.es2019.object.d.ts +35 -0
  41. package/compiler/lib.es2019.string.d.ts +39 -0
  42. package/compiler/lib.es2019.symbol.d.ts +26 -0
  43. package/compiler/lib.es2020.bigint.d.ts +728 -0
  44. package/compiler/lib.es2020.d.ts +27 -0
  45. package/compiler/lib.es2020.full.d.ts +25 -0
  46. package/compiler/lib.es2020.intl.d.ts +368 -0
  47. package/compiler/lib.es2020.promise.d.ts +49 -0
  48. package/compiler/lib.es2020.sharedmemory.d.ts +99 -0
  49. package/compiler/lib.es2020.string.d.ts +30 -0
  50. package/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
  51. package/compiler/lib.es2021.d.ts +25 -0
  52. package/compiler/lib.es2021.full.d.ts +25 -0
  53. package/compiler/lib.es2021.intl.d.ts +44 -0
  54. package/compiler/lib.es2021.promise.d.ts +50 -0
  55. package/compiler/lib.es2021.string.d.ts +35 -0
  56. package/compiler/lib.es2021.weakref.d.ts +75 -0
  57. package/compiler/lib.es5.d.ts +4495 -0
  58. package/compiler/lib.es6.d.ts +25 -0
  59. package/compiler/lib.esnext.d.ts +22 -0
  60. package/compiler/lib.esnext.full.d.ts +25 -0
  61. package/compiler/lib.esnext.intl.d.ts +23 -0
  62. package/compiler/lib.esnext.promise.d.ts +43 -0
  63. package/compiler/lib.esnext.string.d.ts +35 -0
  64. package/compiler/lib.esnext.weakref.d.ts +75 -0
  65. package/compiler/lib.scripthost.d.ts +327 -0
  66. package/compiler/lib.webworker.d.ts +5733 -0
  67. package/compiler/lib.webworker.importscripts.d.ts +26 -0
  68. package/compiler/lib.webworker.iterable.d.ts +160 -0
  69. package/compiler/package.json +8 -0
  70. package/compiler/rindo.d.ts +95 -0
  71. package/compiler/rindo.js +67222 -0
  72. package/compiler/rindo.min.js +4 -0
  73. package/dependencies.json +109 -0
  74. package/dev-server/client/app-error.d.ts +18 -0
  75. package/dev-server/client/events.d.ts +6 -0
  76. package/dev-server/client/hmr-components.d.ts +1 -0
  77. package/dev-server/client/hmr-external-styles.d.ts +1 -0
  78. package/dev-server/client/hmr-images.d.ts +1 -0
  79. package/dev-server/client/hmr-inline-styles.d.ts +1 -0
  80. package/dev-server/client/hmr-util.d.ts +9 -0
  81. package/dev-server/client/hmr-window.d.ts +10 -0
  82. package/dev-server/client/index.d.ts +6 -0
  83. package/dev-server/client/index.js +808 -0
  84. package/dev-server/client/logger.d.ts +5 -0
  85. package/dev-server/client/package.json +8 -0
  86. package/dev-server/client/progress.d.ts +3 -0
  87. package/dev-server/client/status.d.ts +4 -0
  88. package/dev-server/connector.html +6 -0
  89. package/dev-server/index.d.ts +3 -0
  90. package/dev-server/index.js +264 -0
  91. package/dev-server/open-in-editor-api.js +1 -0
  92. package/dev-server/package.json +8 -0
  93. package/dev-server/server-process.js +1763 -0
  94. package/dev-server/server-worker-thread.js +39 -0
  95. package/dev-server/static/favicon.ico +0 -0
  96. package/dev-server/templates/directory-index.html +132 -0
  97. package/dev-server/templates/initial-load.html +160 -0
  98. package/dev-server/visualstudio.vbs +82 -0
  99. package/dev-server/ws.js +1 -0
  100. package/dev-server/xdg-open +1066 -0
  101. package/internal/app-data/index.cjs +92 -0
  102. package/internal/app-data/index.d.ts +4 -0
  103. package/internal/app-data/index.js +88 -0
  104. package/internal/app-data/package.json +15 -0
  105. package/internal/client/css-shim.js +4 -0
  106. package/internal/client/dom.js +73 -0
  107. package/internal/client/index.js +3059 -0
  108. package/internal/client/package.json +8 -0
  109. package/internal/client/patch-browser.js +124 -0
  110. package/internal/client/patch-esm.js +23 -0
  111. package/internal/client/polyfills/core-js.js +11 -0
  112. package/internal/client/polyfills/css-shim.js +1 -0
  113. package/internal/client/polyfills/dom.js +79 -0
  114. package/internal/client/polyfills/es5-html-element.js +1 -0
  115. package/internal/client/polyfills/index.js +34 -0
  116. package/internal/client/polyfills/system.js +6 -0
  117. package/internal/client/shadow-css.js +387 -0
  118. package/internal/hydrate/index.js +1132 -0
  119. package/internal/hydrate/package.json +7 -0
  120. package/internal/hydrate/runner.d.ts +217 -0
  121. package/internal/hydrate/runner.js +777 -0
  122. package/internal/hydrate/shadow-css.js +143 -0
  123. package/internal/index.d.ts +4 -0
  124. package/internal/index.js +2 -0
  125. package/internal/package.json +9 -0
  126. package/internal/rindo-core/index.cjs +1 -0
  127. package/internal/rindo-core/index.d.ts +52 -0
  128. package/internal/rindo-core/index.js +16 -0
  129. package/internal/rindo-ext-modules.d.ts +41 -0
  130. package/internal/rindo-private.d.ts +2289 -0
  131. package/internal/rindo-public-compiler.d.ts +2273 -0
  132. package/internal/rindo-public-docs.d.ts +116 -0
  133. package/internal/rindo-public-runtime.d.ts +1565 -0
  134. package/internal/testing/index.js +1093 -0
  135. package/internal/testing/package.json +7 -0
  136. package/internal/testing/shadow-css.js +143 -0
  137. package/mock-doc/index.cjs +4658 -0
  138. package/mock-doc/index.d.ts +928 -0
  139. package/mock-doc/index.js +4622 -0
  140. package/mock-doc/package.json +15 -0
  141. package/package.json +151 -0
  142. package/readme.md +74 -0
  143. package/screenshot/compare/assets/favicon.ico +0 -0
  144. package/screenshot/compare/assets/logo.png +0 -0
  145. package/screenshot/compare/build/app.css +1 -0
  146. package/screenshot/compare/build/app.esm.js +1 -0
  147. package/screenshot/compare/build/app.js +33 -0
  148. package/screenshot/compare/build/index.esm.js +0 -0
  149. package/screenshot/compare/build/p-081b0641.js +1 -0
  150. package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  151. package/screenshot/compare/build/p-2c298727.entry.js +1 -0
  152. package/screenshot/compare/build/p-5479268c.entry.js +1 -0
  153. package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  154. package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  155. package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  156. package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  157. package/screenshot/compare/build/p-7b4e3ba7.js +1 -0
  158. package/screenshot/compare/build/p-988eb362.css +1 -0
  159. package/screenshot/compare/build/p-9b6a9315.js +1 -0
  160. package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  161. package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  162. package/screenshot/compare/build/p-e2efe0df.js +1 -0
  163. package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  164. package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  165. package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  166. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  167. package/screenshot/compare/build/p-fbbae598.js +1 -0
  168. package/screenshot/compare/host.config.json +15 -0
  169. package/screenshot/compare/index.html +1 -0
  170. package/screenshot/compare/manifest.json +13 -0
  171. package/screenshot/connector-base.d.ts +42 -0
  172. package/screenshot/connector-local.d.ts +7 -0
  173. package/screenshot/connector.js +2 -0
  174. package/screenshot/index.d.ts +3 -0
  175. package/screenshot/index.js +659 -0
  176. package/screenshot/local-connector.js +2 -0
  177. package/screenshot/package.json +15 -0
  178. package/screenshot/pixel-match.d.ts +1 -0
  179. package/screenshot/pixel-match.js +2673 -0
  180. package/screenshot/screenshot-compare.d.ts +3 -0
  181. package/screenshot/screenshot-fs.d.ts +15 -0
  182. package/sys/node/autoprefixer.js +8 -0
  183. package/sys/node/glob.js +1 -0
  184. package/sys/node/graceful-fs.js +1 -0
  185. package/sys/node/index.d.ts +18 -0
  186. package/sys/node/index.js +6124 -0
  187. package/sys/node/node-fetch.js +1 -0
  188. package/sys/node/package.json +8 -0
  189. package/sys/node/prompts.js +1 -0
  190. package/sys/node/worker.js +52 -0
  191. package/testing/index.d.ts +12 -0
  192. package/testing/index.js +4232 -0
  193. package/testing/jest/jest-config.d.ts +16 -0
  194. package/testing/jest/jest-environment.d.ts +15 -0
  195. package/testing/jest/jest-preprocessor.d.ts +59 -0
  196. package/testing/jest/jest-runner.d.ts +9 -0
  197. package/testing/jest/jest-screenshot.d.ts +2 -0
  198. package/testing/jest/jest-serializer.d.ts +5 -0
  199. package/testing/jest/jest-setup-test-framework.d.ts +1 -0
  200. package/testing/jest-environment.js +3 -0
  201. package/testing/jest-preprocessor.js +3 -0
  202. package/testing/jest-preset.js +37 -0
  203. package/testing/jest-runner.js +3 -0
  204. package/testing/jest-setuptestframework.js +3 -0
  205. package/testing/matchers/attributes.d.ts +14 -0
  206. package/testing/matchers/class-list.d.ts +12 -0
  207. package/testing/matchers/events.d.ts +21 -0
  208. package/testing/matchers/html.d.ts +12 -0
  209. package/testing/matchers/index.d.ts +23 -0
  210. package/testing/matchers/screenshot.d.ts +5 -0
  211. package/testing/matchers/text.d.ts +4 -0
  212. package/testing/mock-fetch.d.ts +11 -0
  213. package/testing/mocks.d.ts +10 -0
  214. package/testing/package.json +8 -0
  215. package/testing/puppeteer/index.d.ts +2 -0
  216. package/testing/puppeteer/puppeteer-browser.d.ts +6 -0
  217. package/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
  218. package/testing/puppeteer/puppeteer-element.d.ts +67 -0
  219. package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  220. package/testing/puppeteer/puppeteer-events.d.ts +21 -0
  221. package/testing/puppeteer/puppeteer-page.d.ts +2 -0
  222. package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  223. package/testing/reset-build-conditionals.d.ts +2 -0
  224. package/testing/spec-page.d.ts +2 -0
  225. package/testing/test-transpile.d.ts +2 -0
  226. package/testing/testing-logger.d.ts +25 -0
  227. package/testing/testing-sys.d.ts +6 -0
  228. package/testing/testing-utils.d.ts +6 -0
  229. package/testing/testing.d.ts +2 -0
@@ -0,0 +1,323 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ /////////////////////////////
22
+ /// Window Iterable APIs
23
+ /////////////////////////////
24
+
25
+ interface AudioParam {
26
+ setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
27
+ }
28
+
29
+ interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
30
+ }
31
+
32
+ interface BaseAudioContext {
33
+ createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
34
+ createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
35
+ }
36
+
37
+ interface CSSRuleList {
38
+ [Symbol.iterator](): IterableIterator<CSSRule>;
39
+ }
40
+
41
+ interface CSSStyleDeclaration {
42
+ [Symbol.iterator](): IterableIterator<string>;
43
+ }
44
+
45
+ interface Cache {
46
+ addAll(requests: Iterable<RequestInfo>): Promise<void>;
47
+ }
48
+
49
+ interface CanvasPathDrawingStyles {
50
+ setLineDash(segments: Iterable<number>): void;
51
+ }
52
+
53
+ interface DOMRectList {
54
+ [Symbol.iterator](): IterableIterator<DOMRect>;
55
+ }
56
+
57
+ interface DOMStringList {
58
+ [Symbol.iterator](): IterableIterator<string>;
59
+ }
60
+
61
+ interface DOMTokenList {
62
+ [Symbol.iterator](): IterableIterator<string>;
63
+ entries(): IterableIterator<[number, string]>;
64
+ keys(): IterableIterator<number>;
65
+ values(): IterableIterator<string>;
66
+ }
67
+
68
+ interface DataTransferItemList {
69
+ [Symbol.iterator](): IterableIterator<DataTransferItem>;
70
+ }
71
+
72
+ interface FileList {
73
+ [Symbol.iterator](): IterableIterator<File>;
74
+ }
75
+
76
+ interface FontFaceSet extends Set<FontFace> {
77
+ }
78
+
79
+ interface FormData {
80
+ [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
81
+ /** Returns an array of key, value pairs for every entry in the list. */
82
+ entries(): IterableIterator<[string, FormDataEntryValue]>;
83
+ /** Returns a list of keys in the list. */
84
+ keys(): IterableIterator<string>;
85
+ /** Returns a list of values in the list. */
86
+ values(): IterableIterator<FormDataEntryValue>;
87
+ }
88
+
89
+ interface HTMLAllCollection {
90
+ [Symbol.iterator](): IterableIterator<Element>;
91
+ }
92
+
93
+ interface HTMLCollectionBase {
94
+ [Symbol.iterator](): IterableIterator<Element>;
95
+ }
96
+
97
+ interface HTMLCollectionOf<T extends Element> {
98
+ [Symbol.iterator](): IterableIterator<T>;
99
+ }
100
+
101
+ interface HTMLFormElement {
102
+ [Symbol.iterator](): IterableIterator<Element>;
103
+ }
104
+
105
+ interface HTMLSelectElement {
106
+ [Symbol.iterator](): IterableIterator<HTMLOptionElement>;
107
+ }
108
+
109
+ interface Headers {
110
+ [Symbol.iterator](): IterableIterator<[string, string]>;
111
+ /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
112
+ entries(): IterableIterator<[string, string]>;
113
+ /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
114
+ keys(): IterableIterator<string>;
115
+ /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
116
+ values(): IterableIterator<string>;
117
+ }
118
+
119
+ interface IDBDatabase {
120
+ /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
121
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
122
+ }
123
+
124
+ interface IDBObjectStore {
125
+ /**
126
+ * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
127
+ *
128
+ * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
129
+ */
130
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
131
+ }
132
+
133
+ interface MediaKeyStatusMap {
134
+ [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
135
+ entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
136
+ keys(): IterableIterator<BufferSource>;
137
+ values(): IterableIterator<MediaKeyStatus>;
138
+ }
139
+
140
+ interface MediaList {
141
+ [Symbol.iterator](): IterableIterator<string>;
142
+ }
143
+
144
+ interface MessageEvent<T = any> {
145
+ /** @deprecated */
146
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
147
+ }
148
+
149
+ interface MimeTypeArray {
150
+ [Symbol.iterator](): IterableIterator<MimeType>;
151
+ }
152
+
153
+ interface NamedNodeMap {
154
+ [Symbol.iterator](): IterableIterator<Attr>;
155
+ }
156
+
157
+ interface Navigator {
158
+ /** Available only in secure contexts. */
159
+ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
160
+ vibrate(pattern: Iterable<number>): boolean;
161
+ }
162
+
163
+ interface NodeList {
164
+ [Symbol.iterator](): IterableIterator<Node>;
165
+ /** Returns an array of key, value pairs for every entry in the list. */
166
+ entries(): IterableIterator<[number, Node]>;
167
+ /** Returns an list of keys in the list. */
168
+ keys(): IterableIterator<number>;
169
+ /** Returns an list of values in the list. */
170
+ values(): IterableIterator<Node>;
171
+ }
172
+
173
+ interface NodeListOf<TNode extends Node> {
174
+ [Symbol.iterator](): IterableIterator<TNode>;
175
+ /** Returns an array of key, value pairs for every entry in the list. */
176
+ entries(): IterableIterator<[number, TNode]>;
177
+ /** Returns an list of keys in the list. */
178
+ keys(): IterableIterator<number>;
179
+ /** Returns an list of values in the list. */
180
+ values(): IterableIterator<TNode>;
181
+ }
182
+
183
+ interface Plugin {
184
+ [Symbol.iterator](): IterableIterator<MimeType>;
185
+ }
186
+
187
+ interface PluginArray {
188
+ [Symbol.iterator](): IterableIterator<Plugin>;
189
+ }
190
+
191
+ interface RTCStatsReport extends ReadonlyMap<string, any> {
192
+ }
193
+
194
+ interface SVGLengthList {
195
+ [Symbol.iterator](): IterableIterator<SVGLength>;
196
+ }
197
+
198
+ interface SVGNumberList {
199
+ [Symbol.iterator](): IterableIterator<SVGNumber>;
200
+ }
201
+
202
+ interface SVGPointList {
203
+ [Symbol.iterator](): IterableIterator<DOMPoint>;
204
+ }
205
+
206
+ interface SVGStringList {
207
+ [Symbol.iterator](): IterableIterator<string>;
208
+ }
209
+
210
+ interface SVGTransformList {
211
+ [Symbol.iterator](): IterableIterator<SVGTransform>;
212
+ }
213
+
214
+ interface SourceBufferList {
215
+ [Symbol.iterator](): IterableIterator<SourceBuffer>;
216
+ }
217
+
218
+ interface SpeechRecognitionResult {
219
+ [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
220
+ }
221
+
222
+ interface SpeechRecognitionResultList {
223
+ [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
224
+ }
225
+
226
+ interface StyleSheetList {
227
+ [Symbol.iterator](): IterableIterator<CSSStyleSheet>;
228
+ }
229
+
230
+ interface SubtleCrypto {
231
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
232
+ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
233
+ generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
234
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
235
+ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
236
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
237
+ unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
238
+ }
239
+
240
+ interface TextTrackCueList {
241
+ [Symbol.iterator](): IterableIterator<TextTrackCue>;
242
+ }
243
+
244
+ interface TextTrackList {
245
+ [Symbol.iterator](): IterableIterator<TextTrack>;
246
+ }
247
+
248
+ interface TouchList {
249
+ [Symbol.iterator](): IterableIterator<Touch>;
250
+ }
251
+
252
+ interface URLSearchParams {
253
+ [Symbol.iterator](): IterableIterator<[string, string]>;
254
+ /** Returns an array of key, value pairs for every entry in the search params. */
255
+ entries(): IterableIterator<[string, string]>;
256
+ /** Returns a list of keys in the search params. */
257
+ keys(): IterableIterator<string>;
258
+ /** Returns a list of values in the search params. */
259
+ values(): IterableIterator<string>;
260
+ }
261
+
262
+ interface WEBGL_draw_buffers {
263
+ drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
264
+ }
265
+
266
+ interface WebGL2RenderingContextBase {
267
+ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
268
+ clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
269
+ clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
270
+ drawBuffers(buffers: Iterable<GLenum>): void;
271
+ getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
272
+ getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
273
+ invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
274
+ invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
275
+ transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
276
+ uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
277
+ uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
278
+ uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
279
+ uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
280
+ uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
281
+ uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
282
+ uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
283
+ uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
284
+ uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
285
+ uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
286
+ vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
287
+ vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
288
+ }
289
+
290
+ interface WebGL2RenderingContextOverloads {
291
+ uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
292
+ uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
293
+ uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
294
+ uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
295
+ uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
296
+ uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
297
+ uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
298
+ uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
299
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
300
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
301
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
302
+ }
303
+
304
+ interface WebGLRenderingContextBase {
305
+ vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
306
+ vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
307
+ vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
308
+ vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
309
+ }
310
+
311
+ interface WebGLRenderingContextOverloads {
312
+ uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
313
+ uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
314
+ uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
315
+ uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
316
+ uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
317
+ uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
318
+ uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
319
+ uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
320
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
321
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
322
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
323
+ }
@@ -0,0 +1,89 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ interface Map<K, V> {
22
+ clear(): void;
23
+ delete(key: K): boolean;
24
+ forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
25
+ get(key: K): V | undefined;
26
+ has(key: K): boolean;
27
+ set(key: K, value: V): this;
28
+ readonly size: number;
29
+ }
30
+
31
+ interface MapConstructor {
32
+ new(): Map<any, any>;
33
+ new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
34
+ readonly prototype: Map<any, any>;
35
+ }
36
+ declare var Map: MapConstructor;
37
+
38
+ interface ReadonlyMap<K, V> {
39
+ forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
40
+ get(key: K): V | undefined;
41
+ has(key: K): boolean;
42
+ readonly size: number;
43
+ }
44
+
45
+ interface WeakMap<K extends object, V> {
46
+ delete(key: K): boolean;
47
+ get(key: K): V | undefined;
48
+ has(key: K): boolean;
49
+ set(key: K, value: V): this;
50
+ }
51
+
52
+ interface WeakMapConstructor {
53
+ new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
54
+ readonly prototype: WeakMap<object, any>;
55
+ }
56
+ declare var WeakMap: WeakMapConstructor;
57
+
58
+ interface Set<T> {
59
+ add(value: T): this;
60
+ clear(): void;
61
+ delete(value: T): boolean;
62
+ forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
63
+ has(value: T): boolean;
64
+ readonly size: number;
65
+ }
66
+
67
+ interface SetConstructor {
68
+ new <T = any>(values?: readonly T[] | null): Set<T>;
69
+ readonly prototype: Set<any>;
70
+ }
71
+ declare var Set: SetConstructor;
72
+
73
+ interface ReadonlySet<T> {
74
+ forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
75
+ has(value: T): boolean;
76
+ readonly size: number;
77
+ }
78
+
79
+ interface WeakSet<T extends object> {
80
+ add(value: T): this;
81
+ delete(value: T): boolean;
82
+ has(value: T): boolean;
83
+ }
84
+
85
+ interface WeakSetConstructor {
86
+ new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
87
+ readonly prototype: WeakSet<object>;
88
+ }
89
+ declare var WeakSet: WeakSetConstructor;