Skip to content

Update to [email protected],[email protected] #1722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 75 additions & 18 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4887,7 +4887,11 @@ interface CSSStyleDeclaration {
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
*/
webkitJustifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
/**
* @deprecated This is a legacy alias of `lineClamp`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
*/
webkitLineClamp: string;
/**
* @deprecated This is a legacy alias of `mask`.
Expand Down Expand Up @@ -5549,6 +5553,8 @@ interface CanvasShadowStyles {
}

interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
Expand Down Expand Up @@ -7263,6 +7269,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "TextEvent"): TextEvent;
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
Expand Down Expand Up @@ -7699,7 +7706,7 @@ interface ElementEventMap {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
*/
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
readonly attributes: NamedNodeMap;
/**
Expand Down Expand Up @@ -7728,6 +7735,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
*/
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
innerHTML: string;
/**
* Returns the local name.
*
Expand Down Expand Up @@ -7867,7 +7876,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
insertAdjacentHTML(position: InsertPosition, text: string): void;
insertAdjacentHTML(position: InsertPosition, string: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
insertAdjacentText(where: InsertPosition, data: string): void;
/**
Expand Down Expand Up @@ -8957,7 +8966,9 @@ interface GlobalEventHandlersEventMap {
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextlost": Event;
"contextmenu": MouseEvent;
"contextrestored": Event;
"copy": ClipboardEvent;
"cuechange": Event;
"cut": ClipboardEvent;
Expand Down Expand Up @@ -9098,13 +9109,17 @@ interface GlobalEventHandlers {
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
Expand Down Expand Up @@ -10873,6 +10888,7 @@ interface HTMLIFrameElement extends HTMLElement {
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
referrerPolicy: ReferrerPolicy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
Expand Down Expand Up @@ -11429,6 +11445,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
hreflang: string;
imageSizes: string;
imageSrcset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
integrity: string;
/** Sets or retrieves the media type. */
media: string;
Expand All @@ -11454,7 +11471,11 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
* @deprecated
*/
target: string;
/** Sets or retrieves the MIME type of the object. */
/**
* Sets or retrieves the MIME type of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
Expand Down Expand Up @@ -12478,6 +12499,7 @@ declare var HTMLQuoteElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
*/
interface HTMLScriptElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
Expand All @@ -12486,28 +12508,47 @@ interface HTMLScriptElement extends HTMLElement {
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
crossOrigin: string | null;
/** Sets or retrieves the status of the script. */
/**
* Sets or retrieves the status of the script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
*/
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */
integrity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */
noModule: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
referrerPolicy: string;
/** Retrieves the URL to an external file that contains the source code or data. */
/**
* Retrieves the URL to an external file that contains the source code or data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
*/
src: string;
/** Retrieves or sets the text of the object as a string. */
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
*/
text: string;
/** Sets or retrieves the MIME type for the associated scripting engine. */
/**
* Sets or retrieves the MIME type for the associated scripting engine.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
Expand Down Expand Up @@ -13317,6 +13358,11 @@ interface HTMLTemplateElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
*/
readonly content: DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */
shadowRootClonable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */
shadowRootDelegatesFocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
shadowRootMode: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
Expand Down Expand Up @@ -14503,11 +14549,6 @@ declare var ImageData: {
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

interface InnerHTML {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
innerHTML: string;
}

/**
* Available only in secure contexts.
*
Expand Down Expand Up @@ -16896,8 +16937,6 @@ declare var OffscreenCanvas: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}

declare var OffscreenCanvasRenderingContext2D: {
Expand Down Expand Up @@ -18497,6 +18536,7 @@ declare var RTCPeerConnectionIceEvent: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
*/
interface RTCRtpReceiver {
jitterBufferTarget: DOMHighResTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
Expand Down Expand Up @@ -18575,7 +18615,7 @@ interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
readonly sender: RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
setCodecPreferences(codecs: RTCRtpCodec[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
stop(): void;
}
Expand Down Expand Up @@ -18695,7 +18735,7 @@ interface Range extends AbstractRange {
*/
comparePoint(node: Node, offset: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
createContextualFragment(fragment: string): DocumentFragment;
createContextualFragment(string: string): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
deleteContents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
Expand Down Expand Up @@ -21369,6 +21409,7 @@ interface Selection {
readonly anchorNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
readonly anchorOffset: number;
readonly direction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
readonly focusNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
Expand Down Expand Up @@ -21541,13 +21582,15 @@ interface ShadowRootEventMap {
}

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
readonly clonable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
readonly delegatesFocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
readonly host: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */
innerHTML: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
Expand Down Expand Up @@ -22294,6 +22337,16 @@ declare var TextEncoderStream: {
new(): TextEncoderStream;
};

interface TextEvent extends UIEvent {
readonly data: string;
initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
}

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

/**
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
Expand Down Expand Up @@ -27855,13 +27908,17 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
declare var onclose: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
declare var oncontextrestored: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
Expand Down
2 changes: 1 addition & 1 deletion baselines/dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ interface PluginArray {

interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
}

interface RTCStatsReport extends ReadonlyMap<string, any> {
Expand Down
4 changes: 2 additions & 2 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,8 @@ interface CanvasShadowStyles {
}

interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
Expand Down Expand Up @@ -4088,8 +4090,6 @@ declare var OffscreenCanvas: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}

declare var OffscreenCanvasRenderingContext2D: {
Expand Down
4 changes: 2 additions & 2 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,8 @@ interface CanvasShadowStyles {
}

interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
Expand Down Expand Up @@ -3960,8 +3962,6 @@ declare var OffscreenCanvas: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}

declare var OffscreenCanvasRenderingContext2D: {
Expand Down
4 changes: 2 additions & 2 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,8 @@ interface CanvasShadowStyles {
}

interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
Expand Down Expand Up @@ -4350,8 +4352,6 @@ declare var OffscreenCanvas: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}

declare var OffscreenCanvasRenderingContext2D: {
Expand Down
Loading
Loading