Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: saschanaz <[email protected]>
  • Loading branch information
MattiasBuelens and saschanaz authored Apr 14, 2024
1 parent 6621974 commit 75e1fe1
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 3 deletions.
5 changes: 5 additions & 0 deletions baselines/audioworklet.asynciterable.generated.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/////////////////////////////
/// AudioWorklet Async Iterable APIs
/////////////////////////////

interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
}
11 changes: 11 additions & 0 deletions baselines/audioworklet.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ interface ReadableStreamGetReaderOptions {
mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* 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.
*
* 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.
*/
preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
Expand Down
5 changes: 5 additions & 0 deletions baselines/dom.asynciterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}

interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
}
23 changes: 23 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,17 @@ interface ReadableStreamGetReaderOptions {
mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* 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.
*
* 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.
*/
preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
Expand Down Expand Up @@ -2196,6 +2207,8 @@ interface ARIAMixin {
ariaAtomic: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
ariaAutoComplete: string | null;
ariaBrailleLabel: string | null;
ariaBrailleRoleDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
ariaBusy: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
Expand Down Expand Up @@ -3824,6 +3837,15 @@ declare var CSSSkewY: {
new(ay: CSSNumericValue): CSSSkewY;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */
interface CSSStartingStyleRule extends CSSGroupingRule {
}

declare var CSSStartingStyleRule: {
prototype: CSSStartingStyleRule;
new(): CSSStartingStyleRule;
};

/**
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
*
Expand Down Expand Up @@ -4598,6 +4620,7 @@ interface CSSStyleDeclaration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
textWrap: string;
textWrapMode: string;
textWrapStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
top: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
Expand Down
5 changes: 5 additions & 0 deletions baselines/serviceworker.asynciterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}

interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
}
11 changes: 11 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,17 @@ interface ReadableStreamGetReaderOptions {
mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* 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.
*
* 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.
*/
preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
Expand Down
5 changes: 5 additions & 0 deletions baselines/sharedworker.asynciterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}

interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
}
11 changes: 11 additions & 0 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,17 @@ interface ReadableStreamGetReaderOptions {
mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* 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.
*
* 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.
*/
preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
Expand Down
5 changes: 5 additions & 0 deletions baselines/webworker.asynciterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ interface FileSystemDirectoryHandle {
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}

interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
}
11 changes: 11 additions & 0 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,17 @@ interface ReadableStreamGetReaderOptions {
mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* 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.
*
* 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.
*/
preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75e1fe1

Please sign in to comment.