@soundscript/cli-darwin-x64 0.1.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 (85) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +3 -0
  3. package/bin/soundscript +0 -0
  4. package/package.json +26 -0
  5. package/src/bundled/sound-libs/lib.decorators.d.ts +385 -0
  6. package/src/bundled/sound-libs/lib.decorators.legacy.d.ts +22 -0
  7. package/src/bundled/sound-libs/lib.dom.asynciterable.d.ts +42 -0
  8. package/src/bundled/sound-libs/lib.dom.d.ts +39440 -0
  9. package/src/bundled/sound-libs/lib.es2015.collection.d.ts +149 -0
  10. package/src/bundled/sound-libs/lib.es2015.core.d.ts +657 -0
  11. package/src/bundled/sound-libs/lib.es2015.d.ts +28 -0
  12. package/src/bundled/sound-libs/lib.es2015.generator.d.ts +77 -0
  13. package/src/bundled/sound-libs/lib.es2015.iterable.d.ts +616 -0
  14. package/src/bundled/sound-libs/lib.es2015.promise.d.ts +80 -0
  15. package/src/bundled/sound-libs/lib.es2015.proxy.d.ts +128 -0
  16. package/src/bundled/sound-libs/lib.es2015.reflect.d.ts +144 -0
  17. package/src/bundled/sound-libs/lib.es2015.symbol.d.ts +46 -0
  18. package/src/bundled/sound-libs/lib.es2015.symbol.wellknown.d.ts +170 -0
  19. package/src/bundled/sound-libs/lib.es2016.array.include.d.ts +116 -0
  20. package/src/bundled/sound-libs/lib.es2016.d.ts +21 -0
  21. package/src/bundled/sound-libs/lib.es2017.arraybuffer.d.ts +21 -0
  22. package/src/bundled/sound-libs/lib.es2017.d.ts +26 -0
  23. package/src/bundled/sound-libs/lib.es2017.date.d.ts +31 -0
  24. package/src/bundled/sound-libs/lib.es2017.object.d.ts +49 -0
  25. package/src/bundled/sound-libs/lib.es2017.string.d.ts +45 -0
  26. package/src/bundled/sound-libs/lib.es2017.typedarrays.d.ts +53 -0
  27. package/src/bundled/sound-libs/lib.es2018.asyncgenerator.d.ts +77 -0
  28. package/src/bundled/sound-libs/lib.es2018.asynciterable.d.ts +57 -0
  29. package/src/bundled/sound-libs/lib.es2018.d.ts +24 -0
  30. package/src/bundled/sound-libs/lib.es2018.promise.d.ts +30 -0
  31. package/src/bundled/sound-libs/lib.es2018.regexp.d.ts +37 -0
  32. package/src/bundled/sound-libs/lib.es2019.array.d.ts +79 -0
  33. package/src/bundled/sound-libs/lib.es2019.d.ts +24 -0
  34. package/src/bundled/sound-libs/lib.es2019.object.d.ts +47 -0
  35. package/src/bundled/sound-libs/lib.es2019.string.d.ts +37 -0
  36. package/src/bundled/sound-libs/lib.es2019.symbol.d.ts +24 -0
  37. package/src/bundled/sound-libs/lib.es2020.bigint.d.ts +765 -0
  38. package/src/bundled/sound-libs/lib.es2020.d.ts +27 -0
  39. package/src/bundled/sound-libs/lib.es2020.date.d.ts +42 -0
  40. package/src/bundled/sound-libs/lib.es2020.number.d.ts +28 -0
  41. package/src/bundled/sound-libs/lib.es2020.promise.d.ts +49 -0
  42. package/src/bundled/sound-libs/lib.es2020.string.d.ts +44 -0
  43. package/src/bundled/sound-libs/lib.es2020.symbol.wellknown.d.ts +41 -0
  44. package/src/bundled/sound-libs/lib.es2021.d.ts +23 -0
  45. package/src/bundled/sound-libs/lib.es2021.promise.d.ts +48 -0
  46. package/src/bundled/sound-libs/lib.es2021.string.d.ts +33 -0
  47. package/src/bundled/sound-libs/lib.es2021.weakref.d.ts +78 -0
  48. package/src/bundled/sound-libs/lib.es2022.array.d.ts +121 -0
  49. package/src/bundled/sound-libs/lib.es2022.d.ts +25 -0
  50. package/src/bundled/sound-libs/lib.es2022.error.d.ts +75 -0
  51. package/src/bundled/sound-libs/lib.es2022.object.d.ts +26 -0
  52. package/src/bundled/sound-libs/lib.es2022.regexp.d.ts +39 -0
  53. package/src/bundled/sound-libs/lib.es2022.string.d.ts +25 -0
  54. package/src/bundled/sound-libs/lib.es2023.array.d.ts +924 -0
  55. package/src/bundled/sound-libs/lib.es2023.collection.d.ts +21 -0
  56. package/src/bundled/sound-libs/lib.es2023.d.ts +22 -0
  57. package/src/bundled/sound-libs/lib.es2024.arraybuffer.d.ts +65 -0
  58. package/src/bundled/sound-libs/lib.es2024.collection.d.ts +29 -0
  59. package/src/bundled/sound-libs/lib.es2024.d.ts +26 -0
  60. package/src/bundled/sound-libs/lib.es2024.object.d.ts +33 -0
  61. package/src/bundled/sound-libs/lib.es2024.promise.d.ts +35 -0
  62. package/src/bundled/sound-libs/lib.es2024.regexp.d.ts +25 -0
  63. package/src/bundled/sound-libs/lib.es2024.string.d.ts +29 -0
  64. package/src/bundled/sound-libs/lib.es5.d.ts +4924 -0
  65. package/src/stdlib/async.d.ts +81 -0
  66. package/src/stdlib/codec.d.ts +31 -0
  67. package/src/stdlib/compare.d.ts +28 -0
  68. package/src/stdlib/component.d.ts +40 -0
  69. package/src/stdlib/css.d.ts +16 -0
  70. package/src/stdlib/debug.d.ts +2 -0
  71. package/src/stdlib/decode.d.ts +84 -0
  72. package/src/stdlib/derive.d.ts +6 -0
  73. package/src/stdlib/encode.d.ts +98 -0
  74. package/src/stdlib/failures.d.ts +23 -0
  75. package/src/stdlib/graphql.d.ts +16 -0
  76. package/src/stdlib/hash.d.ts +34 -0
  77. package/src/stdlib/hkt.d.ts +40 -0
  78. package/src/stdlib/index.d.ts +9 -0
  79. package/src/stdlib/json.d.ts +98 -0
  80. package/src/stdlib/match.d.ts +11 -0
  81. package/src/stdlib/numerics.d.ts +45 -0
  82. package/src/stdlib/result.d.ts +52 -0
  83. package/src/stdlib/sql.d.ts +22 -0
  84. package/src/stdlib/thunk.d.ts +2 -0
  85. package/src/stdlib/typeclasses.d.ts +57 -0
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Jake McCloskey
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @soundscript/cli-darwin-x64
2
+
3
+ Prebuilt Soundscript CLI binary for darwin x64.
Binary file
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@soundscript/cli-darwin-x64",
3
+ "version": "0.1.0",
4
+ "license": "ISC",
5
+ "os": [
6
+ "darwin"
7
+ ],
8
+ "cpu": [
9
+ "x64"
10
+ ],
11
+ "files": [
12
+ "LICENSE",
13
+ "README.md",
14
+ "bin/**",
15
+ "src/bundled/sound-libs/**",
16
+ "src/stdlib/**"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/jakemccloskey/soundscript.git"
21
+ },
22
+ "homepage": "https://github.com/jakemccloskey/soundscript",
23
+ "bugs": {
24
+ "url": "https://github.com/jakemccloskey/soundscript/issues"
25
+ }
26
+ }
@@ -0,0 +1,385 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /**
20
+ * The decorator context types provided to class element decorators.
21
+ */
22
+ type ClassMemberDecoratorContext =
23
+ | ClassMethodDecoratorContext
24
+ | ClassGetterDecoratorContext
25
+ | ClassSetterDecoratorContext
26
+ | ClassFieldDecoratorContext
27
+ | ClassAccessorDecoratorContext;
28
+
29
+ /**
30
+ * The decorator context types provided to any decorator.
31
+ */
32
+ type DecoratorContext =
33
+ | ClassDecoratorContext
34
+ | ClassMemberDecoratorContext;
35
+
36
+ type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
37
+
38
+ type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
39
+
40
+ /**
41
+ * Context provided to a class decorator.
42
+ * @template Class The type of the decorated class associated with this context.
43
+ */
44
+ interface ClassDecoratorContext<
45
+ Class extends abstract new (...args: unknown[]) => unknown = abstract new (...args: unknown[]) => unknown,
46
+ > {
47
+ /** The kind of element that was decorated. */
48
+ readonly kind: "class";
49
+
50
+ /** The name of the decorated class. */
51
+ readonly name: string | undefined;
52
+
53
+ /**
54
+ * Adds a callback to be invoked after the class definition has been finalized.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * function customElement(name: string): ClassDecoratorFunction {
59
+ * return (target, context) => {
60
+ * context.addInitializer(function () {
61
+ * customElements.define(name, this);
62
+ * });
63
+ * }
64
+ * }
65
+ *
66
+ * @customElement("my-element")
67
+ * class MyElement {}
68
+ * ```
69
+ */
70
+ addInitializer(initializer: (this: Class) => void): void;
71
+
72
+ readonly metadata: DecoratorMetadata;
73
+ }
74
+
75
+ /**
76
+ * Context provided to a class method decorator.
77
+ * @template This The type on which the class element will be defined. For a static class element, this will be
78
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
79
+ * @template Value The type of the decorated class method.
80
+ */
81
+ interface ClassMethodDecoratorContext<
82
+ This = unknown,
83
+ Value extends (this: This, ...args: unknown[]) => unknown =
84
+ (this: This, ...args: unknown[]) => unknown,
85
+ > {
86
+ /** The kind of class element that was decorated. */
87
+ readonly kind: "method";
88
+
89
+ /** The name of the decorated class element. */
90
+ readonly name: string | symbol;
91
+
92
+ /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
93
+ readonly static: boolean;
94
+
95
+ /** A value indicating whether the class element has a private name. */
96
+ readonly private: boolean;
97
+
98
+ /** An object that can be used to access the current value of the class element at runtime. */
99
+ readonly access: {
100
+ /**
101
+ * Determines whether an object has a property with the same name as the decorated element.
102
+ */
103
+ has(object: This): boolean;
104
+ /**
105
+ * Gets the current value of the method from the provided object.
106
+ *
107
+ * @example
108
+ * let fn = context.access.get(instance);
109
+ */
110
+ get(object: This): Value;
111
+ };
112
+
113
+ /**
114
+ * Adds a callback to be invoked either after static methods are defined but before
115
+ * static initializers are run (when decorating a `static` element), or before instance
116
+ * initializers are run (when decorating a non-`static` element).
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * const bound: ClassMethodDecoratorFunction = (value, context) {
121
+ * if (context.private) throw new TypeError("Not supported on private methods.");
122
+ * context.addInitializer(function () {
123
+ * this[context.name] = this[context.name].bind(this);
124
+ * });
125
+ * }
126
+ *
127
+ * class C {
128
+ * message = "Hello";
129
+ *
130
+ * @bound
131
+ * m() {
132
+ * console.log(this.message);
133
+ * }
134
+ * }
135
+ * ```
136
+ */
137
+ addInitializer(initializer: (this: This) => void): void;
138
+
139
+ readonly metadata: DecoratorMetadata;
140
+ }
141
+
142
+ /**
143
+ * Context provided to a class getter decorator.
144
+ * @template This The type on which the class element will be defined. For a static class element, this will be
145
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
146
+ * @template Value The property type of the decorated class getter.
147
+ */
148
+ interface ClassGetterDecoratorContext<
149
+ This = unknown,
150
+ Value = unknown,
151
+ > {
152
+ /** The kind of class element that was decorated. */
153
+ readonly kind: "getter";
154
+
155
+ /** The name of the decorated class element. */
156
+ readonly name: string | symbol;
157
+
158
+ /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
159
+ readonly static: boolean;
160
+
161
+ /** A value indicating whether the class element has a private name. */
162
+ readonly private: boolean;
163
+
164
+ /** An object that can be used to access the current value of the class element at runtime. */
165
+ readonly access: {
166
+ /**
167
+ * Determines whether an object has a property with the same name as the decorated element.
168
+ */
169
+ has(object: This): boolean;
170
+ /**
171
+ * Invokes the getter on the provided object.
172
+ *
173
+ * @example
174
+ * let value = context.access.get(instance);
175
+ */
176
+ get(object: This): Value;
177
+ };
178
+
179
+ /**
180
+ * Adds a callback to be invoked either after static methods are defined but before
181
+ * static initializers are run (when decorating a `static` element), or before instance
182
+ * initializers are run (when decorating a non-`static` element).
183
+ */
184
+ addInitializer(initializer: (this: This) => void): void;
185
+
186
+ readonly metadata: DecoratorMetadata;
187
+ }
188
+
189
+ /**
190
+ * Context provided to a class setter decorator.
191
+ * @template This The type on which the class element will be defined. For a static class element, this will be
192
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
193
+ * @template Value The type of the decorated class setter.
194
+ */
195
+ interface ClassSetterDecoratorContext<
196
+ This = unknown,
197
+ Value = unknown,
198
+ > {
199
+ /** The kind of class element that was decorated. */
200
+ readonly kind: "setter";
201
+
202
+ /** The name of the decorated class element. */
203
+ readonly name: string | symbol;
204
+
205
+ /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
206
+ readonly static: boolean;
207
+
208
+ /** A value indicating whether the class element has a private name. */
209
+ readonly private: boolean;
210
+
211
+ /** An object that can be used to access the current value of the class element at runtime. */
212
+ readonly access: {
213
+ /**
214
+ * Determines whether an object has a property with the same name as the decorated element.
215
+ */
216
+ has(object: This): boolean;
217
+ /**
218
+ * Invokes the setter on the provided object.
219
+ *
220
+ * @example
221
+ * context.access.set(instance, value);
222
+ */
223
+ set(object: This, value: Value): void;
224
+ };
225
+
226
+ /**
227
+ * Adds a callback to be invoked either after static methods are defined but before
228
+ * static initializers are run (when decorating a `static` element), or before instance
229
+ * initializers are run (when decorating a non-`static` element).
230
+ */
231
+ addInitializer(initializer: (this: This) => void): void;
232
+
233
+ readonly metadata: DecoratorMetadata;
234
+ }
235
+
236
+ /**
237
+ * Context provided to a class `accessor` field decorator.
238
+ * @template This The type on which the class element will be defined. For a static class element, this will be
239
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
240
+ * @template Value The type of decorated class field.
241
+ */
242
+ interface ClassAccessorDecoratorContext<
243
+ This = unknown,
244
+ Value = unknown,
245
+ > {
246
+ /** The kind of class element that was decorated. */
247
+ readonly kind: "accessor";
248
+
249
+ /** The name of the decorated class element. */
250
+ readonly name: string | symbol;
251
+
252
+ /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
253
+ readonly static: boolean;
254
+
255
+ /** A value indicating whether the class element has a private name. */
256
+ readonly private: boolean;
257
+
258
+ /** An object that can be used to access the current value of the class element at runtime. */
259
+ readonly access: {
260
+ /**
261
+ * Determines whether an object has a property with the same name as the decorated element.
262
+ */
263
+ has(object: This): boolean;
264
+
265
+ /**
266
+ * Invokes the getter on the provided object.
267
+ *
268
+ * @example
269
+ * let value = context.access.get(instance);
270
+ */
271
+ get(object: This): Value;
272
+
273
+ /**
274
+ * Invokes the setter on the provided object.
275
+ *
276
+ * @example
277
+ * context.access.set(instance, value);
278
+ */
279
+ set(object: This, value: Value): void;
280
+ };
281
+
282
+ /**
283
+ * Adds a callback to be invoked immediately after the auto `accessor` being
284
+ * decorated is initialized (regardless if the `accessor` is `static` or not).
285
+ */
286
+ addInitializer(initializer: (this: This) => void): void;
287
+
288
+ readonly metadata: DecoratorMetadata;
289
+ }
290
+
291
+ /**
292
+ * Describes the target provided to class `accessor` field decorators.
293
+ * @template This The `this` type to which the target applies.
294
+ * @template Value The property type for the class `accessor` field.
295
+ */
296
+ interface ClassAccessorDecoratorTarget<This, Value> {
297
+ /**
298
+ * Invokes the getter that was defined prior to decorator application.
299
+ *
300
+ * @example
301
+ * let value = target.get.call(instance);
302
+ */
303
+ get(this: This): Value;
304
+
305
+ /**
306
+ * Invokes the setter that was defined prior to decorator application.
307
+ *
308
+ * @example
309
+ * target.set.call(instance, value);
310
+ */
311
+ set(this: This, value: Value): void;
312
+ }
313
+
314
+ /**
315
+ * Describes the allowed return value from a class `accessor` field decorator.
316
+ * @template This The `this` type to which the target applies.
317
+ * @template Value The property type for the class `accessor` field.
318
+ */
319
+ interface ClassAccessorDecoratorResult<This, Value> {
320
+ /**
321
+ * An optional replacement getter function. If not provided, the existing getter function is used instead.
322
+ */
323
+ get?(this: This): Value;
324
+
325
+ /**
326
+ * An optional replacement setter function. If not provided, the existing setter function is used instead.
327
+ */
328
+ set?(this: This, value: Value): void;
329
+
330
+ /**
331
+ * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
332
+ * @param value The incoming initializer value.
333
+ * @returns The replacement initializer value.
334
+ */
335
+ init?(this: This, value: Value): Value;
336
+ }
337
+
338
+ /**
339
+ * Context provided to a class field decorator.
340
+ * @template This The type on which the class element will be defined. For a static class element, this will be
341
+ * the type of the constructor. For a non-static class element, this will be the type of the instance.
342
+ * @template Value The type of the decorated class field.
343
+ */
344
+ interface ClassFieldDecoratorContext<
345
+ This = unknown,
346
+ Value = unknown,
347
+ > {
348
+ /** The kind of class element that was decorated. */
349
+ readonly kind: "field";
350
+
351
+ /** The name of the decorated class element. */
352
+ readonly name: string | symbol;
353
+
354
+ /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
355
+ readonly static: boolean;
356
+
357
+ /** A value indicating whether the class element has a private name. */
358
+ readonly private: boolean;
359
+
360
+ /** An object that can be used to access the current value of the class element at runtime. */
361
+ readonly access: {
362
+ /**
363
+ * Determines whether an object has a property with the same name as the decorated element.
364
+ */
365
+ has(object: This): boolean;
366
+
367
+ /**
368
+ * Gets the value of the field on the provided object.
369
+ */
370
+ get(object: This): Value;
371
+
372
+ /**
373
+ * Sets the value of the field on the provided object.
374
+ */
375
+ set(object: This, value: Value): void;
376
+ };
377
+
378
+ /**
379
+ * Adds a callback to be invoked immediately after the field being decorated
380
+ * is initialized (regardless if the field is `static` or not).
381
+ */
382
+ addInitializer(initializer: (this: This) => void): void;
383
+
384
+ readonly metadata: DecoratorMetadata;
385
+ }
@@ -0,0 +1,22 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
20
+ declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
21
+ declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
22
+ declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
@@ -0,0 +1,42 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /////////////////////////////
20
+ /// Window Async Iterable APIs
21
+ /////////////////////////////
22
+
23
+ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
24
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
25
+ }
26
+
27
+ interface FileSystemDirectoryHandle {
28
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
29
+ entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
30
+ keys(): FileSystemDirectoryHandleAsyncIterator<string>;
31
+ values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
32
+ }
33
+
34
+ // #[variance(T: out)]
35
+ interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
36
+ [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
37
+ }
38
+
39
+ interface ReadableStream<R = any> {
40
+ [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
41
+ values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
42
+ }