Skip to content

Commit 89714d0

Browse files
Bashamegasaschanaz
andauthored
Move the generate comments function down after all the merges (#2245)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 4ce7a4d commit 89714d0

21 files changed

+433
-37
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ declare var ByteLengthQueuingStrategy: {
350350
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
351351
*/
352352
interface CompressionStream extends GenericTransformStream {
353+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
353354
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
355+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
354356
readonly writable: WritableStream<BufferSource>;
355357
}
356358

@@ -494,7 +496,9 @@ declare var DOMException: {
494496
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
495497
*/
496498
interface DecompressionStream extends GenericTransformStream {
499+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
497500
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
501+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
498502
readonly writable: WritableStream<BufferSource>;
499503
}
500504

@@ -1119,7 +1123,9 @@ interface TextDecoderCommon {
11191123
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
11201124
*/
11211125
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
1126+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
11221127
readonly readable: ReadableStream<string>;
1128+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
11231129
readonly writable: WritableStream<BufferSource>;
11241130
}
11251131

@@ -1168,7 +1174,9 @@ interface TextEncoderCommon {
11681174
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
11691175
*/
11701176
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
1177+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
11711178
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
1179+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
11721180
readonly writable: WritableStream<string>;
11731181
}
11741182

@@ -1538,6 +1546,7 @@ declare var WritableStreamDefaultWriter: {
15381546
};
15391547

15401548
declare namespace WebAssembly {
1549+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
15411550
interface CompileError extends Error {
15421551
}
15431552

@@ -1612,6 +1621,7 @@ declare namespace WebAssembly {
16121621
new(module: Module, importObject?: Imports): Instance;
16131622
};
16141623

1624+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
16151625
interface LinkError extends Error {
16161626
}
16171627

@@ -1677,6 +1687,7 @@ declare namespace WebAssembly {
16771687
imports(moduleObject: Module): ModuleImportDescriptor[];
16781688
};
16791689

1690+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
16801691
interface RuntimeError extends Error {
16811692
}
16821693

@@ -1923,6 +1934,7 @@ interface Console {
19231934
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
19241935
*/
19251936
timeLog(label?: string, ...data: any[]): void;
1937+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
19261938
timeStamp(label?: string): void;
19271939
/**
19281940
* The **`console.trace()`** static method outputs a stack trace to the console.

baselines/dom.generated.d.ts

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10297,7 +10297,9 @@ declare var CompositionEvent: {
1029710297
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
1029810298
*/
1029910299
interface CompressionStream extends GenericTransformStream {
10300+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
1030010301
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
10302+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
1030110303
readonly writable: WritableStream<BufferSource>;
1030210304
}
1030310305

@@ -11778,7 +11780,9 @@ declare var DataTransferItemList: {
1177811780
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
1177911781
*/
1178011782
interface DecompressionStream extends GenericTransformStream {
11783+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
1178111784
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
11785+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
1178211786
readonly writable: WritableStream<BufferSource>;
1178311787
}
1178411788

@@ -12280,7 +12284,10 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1228012284
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint)
1228112285
*/
1228212286
caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null;
12283-
/** @deprecated */
12287+
/**
12288+
* The **`caretRangeFromPoint()`** method of the Document interface returns a Range object for the document fragment under the specified coordinates.
12289+
* @deprecated
12290+
*/
1228412291
caretRangeFromPoint(x: number, y: number): Range | null;
1228512292
/**
1228612293
* The **`Document.clear()`** method does nothing, but doesn't raise any error.
@@ -12477,6 +12484,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1247712484
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
1247812485
*/
1247912486
exitPointerLock(): void;
12487+
/** The **`getElementById()`** method of the Document interface returns an Element object representing the element whose id property matches the specified string. Since element IDs are required to be unique if specified, they're a useful way to get access to a specific element quickly. */
1248012488
getElementById(elementId: string): HTMLElement | null;
1248112489
/**
1248212490
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
@@ -12620,6 +12628,7 @@ declare var Document: {
1262012628
*/
1262112629
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
1262212630
readonly ownerDocument: Document;
12631+
/** The **`getElementById()`** method of the DocumentFragment returns an Element object representing the element whose id property matches the specified string. Since element IDs are required to be unique if specified, they're a useful way to get access to a specific element quickly. */
1262312632
getElementById(elementId: string): HTMLElement | null;
1262412633
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */
1262512634
get textContent(): string;
@@ -15924,6 +15933,7 @@ declare var HTMLDivElement: {
1592415933
new(): HTMLDivElement;
1592515934
};
1592615935

15936+
/** For historical reasons, Window objects have a **`window.HTMLDocument`** property whose value is the Document interface. So you can think of HTMLDocument as an alias for Document, and you can find documentation for HTMLDocument members under the documentation for the Document interface. */
1592715937
interface HTMLDocument extends Document {
1592815938
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1592915939
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -23683,6 +23693,7 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, Navi
2368323693
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)
2368423694
*/
2368523695
readonly credentials: CredentialsContainer;
23696+
/** The **`Navigator.doNotTrack`** property returns the user's Do Not Track setting, which indicates whether the user is requesting websites and advertisers to not track them. */
2368623697
readonly doNotTrack: string | null;
2368723698
/**
2368823699
* The **`Navigator.geolocation`** read-only property returns a Geolocation object that gives Web content access to the location of the device. This allows a website or app to offer customized results based on the user's location.
@@ -26972,7 +26983,11 @@ interface RTCEncodedAudioFrame {
2697226983
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
2697326984
*/
2697426985
data: ArrayBuffer;
26975-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
26986+
/**
26987+
* The **`timestamp`** read-only property of the RTCEncodedAudioFrame interface indicates the time at which frame sampling started.
26988+
*
26989+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp)
26990+
*/
2697626991
readonly timestamp: number;
2697726992
/**
2697826993
* The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
@@ -26999,7 +27014,11 @@ interface RTCEncodedVideoFrame {
2699927014
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
2700027015
*/
2700127016
data: ArrayBuffer;
27002-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
27017+
/**
27018+
* The **`timestamp`** read-only property of the RTCEncodedVideoFrame interface indicates the time at which frame sampling started.
27019+
*
27020+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp)
27021+
*/
2700327022
readonly timestamp: number;
2700427023
/**
2700527024
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
@@ -34238,7 +34257,9 @@ interface TextDecoderCommon {
3423834257
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
3423934258
*/
3424034259
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
34260+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
3424134261
readonly readable: ReadableStream<string>;
34262+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
3424234263
readonly writable: WritableStream<BufferSource>;
3424334264
}
3424434265

@@ -34287,7 +34308,9 @@ interface TextEncoderCommon {
3428734308
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
3428834309
*/
3428934310
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
34311+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
3429034312
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
34313+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
3429134314
readonly writable: WritableStream<string>;
3429234315
}
3429334316

@@ -38816,7 +38839,11 @@ interface WebTransportDatagramDuplexStream {
3881638839
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
3881738840
*/
3881838841
readonly readable: ReadableStream;
38819-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
38842+
/**
38843+
* The **`writable`** read-only property of the WebTransportDatagramDuplexStream interface returns a WritableStream instance that can be used to unreliably write outgoing datagrams to the stream.
38844+
*
38845+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
38846+
*/
3882038847
readonly writable: WritableStream;
3882138848
}
3882238849

@@ -40226,6 +40253,7 @@ declare namespace CSS {
4022640253
}
4022740254

4022840255
declare namespace WebAssembly {
40256+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
4022940257
interface CompileError extends Error {
4023040258
}
4023140259

@@ -40300,6 +40328,7 @@ declare namespace WebAssembly {
4030040328
new(module: Module, importObject?: Imports): Instance;
4030140329
};
4030240330

40331+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
4030340332
interface LinkError extends Error {
4030440333
}
4030540334

@@ -40365,6 +40394,7 @@ declare namespace WebAssembly {
4036540394
imports(moduleObject: Module): ModuleImportDescriptor[];
4036640395
};
4036740396

40397+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
4036840398
interface RuntimeError extends Error {
4036940399
}
4037040400

@@ -40615,6 +40645,7 @@ interface Console {
4061540645
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
4061640646
*/
4061740647
timeLog(label?: string, ...data: any[]): void;
40648+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
4061840649
timeStamp(label?: string): void;
4061940650
/**
4062040651
* The **`console.trace()`** static method outputs a stack trace to the console.

baselines/serviceworker.generated.d.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,9 @@ declare var CloseEvent: {
22022202
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
22032203
*/
22042204
interface CompressionStream extends GenericTransformStream {
2205+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
22052206
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
2207+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
22062208
readonly writable: WritableStream<BufferSource>;
22072209
}
22082210

@@ -3124,7 +3126,9 @@ declare var DOMStringList: {
31243126
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
31253127
*/
31263128
interface DecompressionStream extends GenericTransformStream {
3129+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
31273130
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
3131+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
31283132
readonly writable: WritableStream<BufferSource>;
31293133
}
31303134

@@ -7524,7 +7528,9 @@ interface TextDecoderCommon {
75247528
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
75257529
*/
75267530
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
7531+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
75277532
readonly readable: ReadableStream<string>;
7533+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
75287534
readonly writable: WritableStream<BufferSource>;
75297535
}
75307536

@@ -7573,7 +7579,9 @@ interface TextEncoderCommon {
75737579
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
75747580
*/
75757581
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
7582+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
75767583
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
7584+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
75777585
readonly writable: WritableStream<string>;
75787586
}
75797587

@@ -10689,7 +10697,11 @@ interface WebTransportDatagramDuplexStream {
1068910697
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
1069010698
*/
1069110699
readonly readable: ReadableStream;
10692-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
10700+
/**
10701+
* The **`writable`** read-only property of the WebTransportDatagramDuplexStream interface returns a WritableStream instance that can be used to unreliably write outgoing datagrams to the stream.
10702+
*
10703+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
10704+
*/
1069310705
readonly writable: WritableStream;
1069410706
}
1069510707

@@ -11087,6 +11099,7 @@ declare var WritableStreamDefaultWriter: {
1108711099
};
1108811100

1108911101
declare namespace WebAssembly {
11102+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
1109011103
interface CompileError extends Error {
1109111104
}
1109211105

@@ -11161,6 +11174,7 @@ declare namespace WebAssembly {
1116111174
new(module: Module, importObject?: Imports): Instance;
1116211175
};
1116311176

11177+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
1116411178
interface LinkError extends Error {
1116511179
}
1116611180

@@ -11226,6 +11240,7 @@ declare namespace WebAssembly {
1122611240
imports(moduleObject: Module): ModuleImportDescriptor[];
1122711241
};
1122811242

11243+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
1122911244
interface RuntimeError extends Error {
1123011245
}
1123111246

@@ -11476,6 +11491,7 @@ interface Console {
1147611491
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
1147711492
*/
1147811493
timeLog(label?: string, ...data: any[]): void;
11494+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
1147911495
timeStamp(label?: string): void;
1148011496
/**
1148111497
* The **`console.trace()`** static method outputs a stack trace to the console.

0 commit comments

Comments
 (0)