Skip to content

Commit 2d2f694

Browse files
authored
Merge branch 'main' into ts-go
2 parents 1147406 + 3308122 commit 2d2f694

23 files changed

+361
-590
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ interface ReadableByteStreamController {
870870
*/
871871
close(): void;
872872
/**
873-
* The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
873+
* The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
874874
*
875875
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
876876
*/

baselines/dom.generated.d.ts

Lines changed: 40 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -6851,6 +6851,7 @@ interface CSSStyleProperties extends CSSStyleDeclaration {
68516851
textAlignLast: string;
68526852
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */
68536853
textAnchor: string;
6854+
textAutospace: string;
68546855
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */
68556856
textBox: string;
68566857
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */
@@ -10692,7 +10693,7 @@ declare var Document: {
1069210693
prototype: Document;
1069310694
new(): Document;
1069410695
/**
10695-
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10696+
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
1069610697
*
1069710698
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
1069810699
*/
@@ -11366,7 +11367,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
1136611367
*/
1136711368
setAttributeNodeNS(attr: Attr): Attr | null;
1136811369
/**
11369-
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11370+
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
1137011371
*
1137111372
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
1137211373
*/
@@ -12405,6 +12406,12 @@ interface FontFace {
1240512406
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
1240612407
*/
1240712408
unicodeRange: string;
12409+
/**
12410+
* The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
12411+
*
12412+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
12413+
*/
12414+
variationSettings: string;
1240812415
/**
1240912416
* The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
1241012417
*
@@ -12989,7 +12996,7 @@ interface GlobalEventHandlersEventMap {
1298912996
"focusout": FocusEvent;
1299012997
"formdata": FormDataEvent;
1299112998
"gotpointercapture": PointerEvent;
12992-
"input": Event;
12999+
"input": InputEvent;
1299313000
"invalid": Event;
1299413001
"keydown": KeyboardEvent;
1299513002
"keypress": KeyboardEvent;
@@ -13130,7 +13137,7 @@ interface GlobalEventHandlers {
1313013137
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
1313113138
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1313213139
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
13133-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13140+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
1313413141
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
1313513142
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1313613143
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */
@@ -13575,7 +13582,7 @@ declare var HTMLBodyElement: {
1357513582
*
1357613583
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
1357713584
*/
13578-
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
13585+
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
1357913586
/**
1358013587
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
1358113588
*
@@ -15026,7 +15033,7 @@ declare var HTMLImageElement: {
1502615033
*
1502715034
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
1502815035
*/
15029-
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
15036+
interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
1503015037
/**
1503115038
* The **`accept`** property of the HTMLInputElement interface reflects the input element's `accept` attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an `<input>` of type `file`.
1503215039
*
@@ -15290,7 +15297,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
1529015297
*/
1529115298
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
1529215299
/**
15293-
* The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements should let the user select directories instead of files.
15300+
* The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements can only select directories instead of files.
1529415301
*
1529515302
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
1529615303
*/
@@ -18152,7 +18159,7 @@ declare var Headers: {
1815218159
*/
1815318160
interface Highlight {
1815418161
/**
18155-
* It is possible to create Range objects that overlap in a document.
18162+
* The `priority` property of the Highlight interface is a number used to determine which highlight's styles should be used to resolve style conflicts in overlapping parts.
1815618163
*
1815718164
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)
1815818165
*/
@@ -19598,7 +19605,11 @@ interface LargestContentfulPaint extends PerformanceEntry {
1959819605
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime)
1959919606
*/
1960019607
readonly loadTime: DOMHighResTimeStamp;
19601-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
19608+
/**
19609+
* The **`renderTime`** read-only property of the LargestContentfulPaint interface represents the time that the element was rendered to the screen.
19610+
*
19611+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime)
19612+
*/
1960219613
readonly renderTime: DOMHighResTimeStamp;
1960319614
/**
1960419615
* The **`size`** read-only property of the LargestContentfulPaint interface returns the intrinsic size of the element that is the largest contentful paint.
@@ -19766,8 +19777,8 @@ interface LockManager {
1976619777
*
1976719778
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
1976819779
*/
19769-
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
19770-
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
19780+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
19781+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
1977119782
}
1977219783

1977319784
declare var LockManager: {
@@ -21888,55 +21899,23 @@ interface NavigatorCookies {
2188821899
}
2188921900

2189021901
interface NavigatorID {
21891-
/**
21892-
* @deprecated
21893-
*
21894-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
21895-
*/
21902+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
2189621903
readonly appCodeName: string;
21897-
/**
21898-
* @deprecated
21899-
*
21900-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
21901-
*/
21904+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
2190221905
readonly appName: string;
21903-
/**
21904-
* @deprecated
21905-
*
21906-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
21907-
*/
21906+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
2190821907
readonly appVersion: string;
21909-
/**
21910-
* @deprecated
21911-
*
21912-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
21913-
*/
21908+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
2191421909
readonly platform: string;
21915-
/**
21916-
* @deprecated
21917-
*
21918-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
21919-
*/
21910+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
2192021911
readonly product: string;
21921-
/**
21922-
* @deprecated
21923-
*
21924-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)
21925-
*/
21912+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub) */
2192621913
readonly productSub: string;
2192721914
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
2192821915
readonly userAgent: string;
21929-
/**
21930-
* @deprecated
21931-
*
21932-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)
21933-
*/
21916+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor) */
2193421917
readonly vendor: string;
21935-
/**
21936-
* @deprecated
21937-
*
21938-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)
21939-
*/
21918+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub) */
2194021919
readonly vendorSub: string;
2194121920
}
2194221921

@@ -21979,25 +21958,13 @@ interface NavigatorOnLine {
2197921958
}
2198021959

2198121960
interface NavigatorPlugins {
21982-
/**
21983-
* @deprecated
21984-
*
21985-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes)
21986-
*/
21961+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes) */
2198721962
readonly mimeTypes: MimeTypeArray;
2198821963
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */
2198921964
readonly pdfViewerEnabled: boolean;
21990-
/**
21991-
* @deprecated
21992-
*
21993-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)
21994-
*/
21965+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins) */
2199521966
readonly plugins: PluginArray;
21996-
/**
21997-
* @deprecated
21998-
*
21999-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)
22000-
*/
21967+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled) */
2200121968
javaEnabled(): boolean;
2200221969
}
2200321970

@@ -24499,7 +24466,7 @@ declare var PopStateEvent: {
2449924466
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
2450024467
};
2450124468

24502-
interface PopoverInvokerElement {
24469+
interface PopoverTargetAttributes {
2450324470
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
2450424471
popoverTargetAction: string;
2450524472
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
@@ -25616,7 +25583,7 @@ declare var RTCPeerConnectionIceEvent: {
2561625583
*/
2561725584
interface RTCRtpReceiver {
2561825585
/**
25619-
* The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
25586+
* The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter should hold media before playing it out.
2562025587
*
2562125588
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)
2562225589
*/
@@ -26156,7 +26123,7 @@ interface ReadableByteStreamController {
2615626123
*/
2615726124
close(): void;
2615826125
/**
26159-
* The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
26126+
* The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
2616026127
*
2616126128
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
2616226129
*/
@@ -31166,7 +31133,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
3116631133
*/
3116731134
getHTML(options?: GetHTMLOptions): string;
3116831135
/**
31169-
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31136+
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
3117031137
*
3117131138
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
3117231139
*/
@@ -33327,7 +33294,7 @@ interface URLPattern {
3332733294
*/
3332833295
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
3332933296
/**
33330-
* The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33297+
* The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
3333133298
*
3333233299
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
3333333300
*/
@@ -36713,7 +36680,7 @@ interface WebSocket extends EventTarget {
3671336680
*
3671436681
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
3671536682
*/
36716-
readonly readyState: number;
36683+
readonly readyState: 0 | 1 | 2 | 3;
3671736684
/**
3671836685
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
3671936686
*
@@ -39600,7 +39567,7 @@ declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
3960039567
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
3960139568
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
3960239569
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
39603-
declare var oninput: ((this: Window, ev: Event) => any) | null;
39570+
declare var oninput: ((this: Window, ev: InputEvent) => any) | null;
3960439571
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
3960539572
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
3960639573
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */

baselines/serviceworker.generated.d.ts

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ interface PromiseRejectionEventInit extends EventInit {
495495
}
496496

497497
interface PushEventInit extends ExtendableEventInit {
498-
data?: PushMessageDataInit;
498+
data?: PushMessageDataInit | null;
499499
}
500500

501501
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
@@ -3966,6 +3966,12 @@ interface FontFace {
39663966
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
39673967
*/
39683968
unicodeRange: string;
3969+
/**
3970+
* The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
3971+
*
3972+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
3973+
*/
3974+
variationSettings: string;
39693975
/**
39703976
* The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
39713977
*
@@ -5024,8 +5030,8 @@ interface LockManager {
50245030
*
50255031
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
50265032
*/
5027-
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
5028-
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
5033+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5034+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
50295035
}
50305036

50315037
declare var LockManager: {
@@ -5237,35 +5243,15 @@ interface NavigatorConcurrentHardware {
52375243
}
52385244

52395245
interface NavigatorID {
5240-
/**
5241-
* @deprecated
5242-
*
5243-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
5244-
*/
5246+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
52455247
readonly appCodeName: string;
5246-
/**
5247-
* @deprecated
5248-
*
5249-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
5250-
*/
5248+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
52515249
readonly appName: string;
5252-
/**
5253-
* @deprecated
5254-
*
5255-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
5256-
*/
5250+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
52575251
readonly appVersion: string;
5258-
/**
5259-
* @deprecated
5260-
*
5261-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
5262-
*/
5252+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
52635253
readonly platform: string;
5264-
/**
5265-
* @deprecated
5266-
*
5267-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
5268-
*/
5254+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
52695255
readonly product: string;
52705256
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
52715257
readonly userAgent: string;
@@ -6410,7 +6396,7 @@ interface ReadableByteStreamController {
64106396
*/
64116397
close(): void;
64126398
/**
6413-
* The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
6399+
* The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
64146400
*
64156401
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
64166402
*/
@@ -7866,7 +7852,7 @@ interface URLPattern {
78667852
*/
78677853
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
78687854
/**
7869-
* The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7855+
* The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
78707856
*
78717857
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
78727858
*/
@@ -10486,7 +10472,7 @@ interface WebSocket extends EventTarget {
1048610472
*
1048710473
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1048810474
*/
10489-
readonly readyState: number;
10475+
readonly readyState: 0 | 1 | 2 | 3;
1049010476
/**
1049110477
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1049210478
*

0 commit comments

Comments
 (0)