Skip to content

Commit 75e1fe1

Browse files
Co-authored-by: saschanaz <[email protected]>
1 parent 6621974 commit 75e1fe1

11 files changed

+95
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
/////////////////////////////
22
/// AudioWorklet Async Iterable APIs
33
/////////////////////////////
4+
5+
interface ReadableStream<R = any> {
6+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
7+
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
8+
}

baselines/audioworklet.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ interface ReadableStreamGetReaderOptions {
6666
mode?: ReadableStreamReaderMode;
6767
}
6868

69+
interface ReadableStreamIteratorOptions {
70+
/**
71+
* Asynchronously iterates over the chunks in the stream's internal queue.
72+
*
73+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
74+
*
75+
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
76+
*/
77+
preventCancel?: boolean;
78+
}
79+
6980
interface ReadableStreamReadDoneResult<T> {
7081
done: true;
7182
value?: T;

baselines/dom.asynciterable.generated.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
88
keys(): AsyncIterableIterator<string>;
99
values(): AsyncIterableIterator<FileSystemHandle>;
1010
}
11+
12+
interface ReadableStream<R = any> {
13+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
14+
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
15+
}

baselines/dom.generated.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,17 @@ interface ReadableStreamGetReaderOptions {
16261626
mode?: ReadableStreamReaderMode;
16271627
}
16281628

1629+
interface ReadableStreamIteratorOptions {
1630+
/**
1631+
* Asynchronously iterates over the chunks in the stream's internal queue.
1632+
*
1633+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
1634+
*
1635+
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
1636+
*/
1637+
preventCancel?: boolean;
1638+
}
1639+
16291640
interface ReadableStreamReadDoneResult<T> {
16301641
done: true;
16311642
value?: T;
@@ -2196,6 +2207,8 @@ interface ARIAMixin {
21962207
ariaAtomic: string | null;
21972208
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
21982209
ariaAutoComplete: string | null;
2210+
ariaBrailleLabel: string | null;
2211+
ariaBrailleRoleDescription: string | null;
21992212
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
22002213
ariaBusy: string | null;
22012214
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
@@ -3824,6 +3837,15 @@ declare var CSSSkewY: {
38243837
new(ay: CSSNumericValue): CSSSkewY;
38253838
};
38263839

3840+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */
3841+
interface CSSStartingStyleRule extends CSSGroupingRule {
3842+
}
3843+
3844+
declare var CSSStartingStyleRule: {
3845+
prototype: CSSStartingStyleRule;
3846+
new(): CSSStartingStyleRule;
3847+
};
3848+
38273849
/**
38283850
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
38293851
*
@@ -4598,6 +4620,7 @@ interface CSSStyleDeclaration {
45984620
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
45994621
textWrap: string;
46004622
textWrapMode: string;
4623+
textWrapStyle: string;
46014624
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
46024625
top: string;
46034626
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */

baselines/serviceworker.asynciterable.generated.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
88
keys(): AsyncIterableIterator<string>;
99
values(): AsyncIterableIterator<FileSystemHandle>;
1010
}
11+
12+
interface ReadableStream<R = any> {
13+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
14+
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
15+
}

baselines/serviceworker.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,17 @@ interface ReadableStreamGetReaderOptions {
488488
mode?: ReadableStreamReaderMode;
489489
}
490490

491+
interface ReadableStreamIteratorOptions {
492+
/**
493+
* Asynchronously iterates over the chunks in the stream's internal queue.
494+
*
495+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
496+
*
497+
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
498+
*/
499+
preventCancel?: boolean;
500+
}
501+
491502
interface ReadableStreamReadDoneResult<T> {
492503
done: true;
493504
value?: T;

baselines/sharedworker.asynciterable.generated.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
88
keys(): AsyncIterableIterator<string>;
99
values(): AsyncIterableIterator<FileSystemHandle>;
1010
}
11+
12+
interface ReadableStream<R = any> {
13+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
14+
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
15+
}

baselines/sharedworker.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,17 @@ interface ReadableStreamGetReaderOptions {
454454
mode?: ReadableStreamReaderMode;
455455
}
456456

457+
interface ReadableStreamIteratorOptions {
458+
/**
459+
* Asynchronously iterates over the chunks in the stream's internal queue.
460+
*
461+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
462+
*
463+
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
464+
*/
465+
preventCancel?: boolean;
466+
}
467+
457468
interface ReadableStreamReadDoneResult<T> {
458469
done: true;
459470
value?: T;

baselines/webworker.asynciterable.generated.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
88
keys(): AsyncIterableIterator<string>;
99
values(): AsyncIterableIterator<FileSystemHandle>;
1010
}
11+
12+
interface ReadableStream<R = any> {
13+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
14+
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
15+
}

baselines/webworker.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,17 @@ interface ReadableStreamGetReaderOptions {
532532
mode?: ReadableStreamReaderMode;
533533
}
534534

535+
interface ReadableStreamIteratorOptions {
536+
/**
537+
* Asynchronously iterates over the chunks in the stream's internal queue.
538+
*
539+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
540+
*
541+
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
542+
*/
543+
preventCancel?: boolean;
544+
}
545+
535546
interface ReadableStreamReadDoneResult<T> {
536547
done: true;
537548
value?: T;

0 commit comments

Comments
 (0)