Skip to content

Commit c51dfa5

Browse files
authored
Port generated lib files (#21071)
1 parent 6f2ba15 commit c51dfa5

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

src/lib/dom.generated.d.ts

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,8 +3596,8 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
35963596
slot: string;
35973597
readonly shadowRoot: ShadowRoot | null;
35983598
getAttribute(name: string): string | null;
3599-
getAttributeNode(name: string): Attr;
3600-
getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
3599+
getAttributeNode(name: string): Attr | null;
3600+
getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;
36013601
getAttributeNS(namespaceURI: string, localName: string): string;
36023602
getBoundingClientRect(): ClientRect;
36033603
getClientRects(): ClientRectList;
@@ -3757,9 +3757,10 @@ declare var External: {
37573757
};
37583758

37593759
interface File extends Blob {
3760-
readonly lastModifiedDate: any;
3760+
readonly lastModifiedDate: Date;
37613761
readonly name: string;
37623762
readonly webkitRelativePath: string;
3763+
readonly lastModified: number;
37633764
}
37643765

37653766
declare var File: {
@@ -5200,6 +5201,10 @@ interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
52005201
* Sets or retrieves the width of the object.
52015202
*/
52025203
width: string;
5204+
/**
5205+
* Sets or retrives the content of the page that is to contain.
5206+
*/
5207+
srcdoc: string;
52035208
addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
52045209
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
52055210
removeEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -5495,8 +5500,9 @@ interface HTMLInputElement extends HTMLElement {
54955500
* Sets the start and end positions of a selection in a text field.
54965501
* @param start The offset into the text field for the start of the selection.
54975502
* @param end The offset into the text field for the end of the selection.
5503+
* @param direction The direction in which the selection is performed.
54985504
*/
5499-
setSelectionRange(start?: number, end?: number, direction?: string): void;
5505+
setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;
55005506
/**
55015507
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
55025508
* @param n Value to decrement the value by.
@@ -6057,6 +6063,7 @@ interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
60576063
* Returns whether an element will successfully validate based on forms validation rules and constraints.
60586064
*/
60596065
readonly willValidate: boolean;
6066+
typemustmatch: boolean;
60606067
/**
60616068
* Returns whether a form will validate when it is submitted, without having to submit it.
60626069
*/
@@ -6958,8 +6965,9 @@ interface HTMLTextAreaElement extends HTMLElement {
69586965
* Sets the start and end positions of a selection in a text field.
69596966
* @param start The offset into the text field for the start of the selection.
69606967
* @param end The offset into the text field for the end of the selection.
6968+
* @param direction The direction in which the selection is performed.
69616969
*/
6962-
setSelectionRange(start: number, end: number): void;
6970+
setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;
69636971
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
69646972
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
69656973
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12213,7 +12221,7 @@ interface URL {
1221312221

1221412222
declare var URL: {
1221512223
prototype: URL;
12216-
new(url: string, base?: string): URL;
12224+
new(url: string, base?: string | URL): URL;
1221712225
createObjectURL(object: any, options?: ObjectURLOptions): string;
1221812226
revokeObjectURL(url: string): void;
1221912227
};
@@ -15029,6 +15037,7 @@ interface SVGElementTagNameMap {
1502915037
"view": SVGViewElement;
1503015038
}
1503115039

15040+
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
1503215041
interface ElementTagNameMap extends HTMLElementTagNameMap, SVGElementTagNameMap { }
1503315042

1503415043
declare var Audio: { new(src?: string): HTMLAudioElement; };

src/lib/webworker.generated.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,10 @@ declare var EventTarget: {
414414
};
415415

416416
interface File extends Blob {
417-
readonly lastModifiedDate: any;
417+
readonly lastModifiedDate: Date;
418418
readonly name: string;
419419
readonly webkitRelativePath: string;
420+
readonly lastModified: number;
420421
}
421422

422423
declare var File: {
@@ -1061,7 +1062,7 @@ interface URL {
10611062

10621063
declare var URL: {
10631064
prototype: URL;
1064-
new(url: string, base?: string): URL;
1065+
new(url: string, base?: string | URL): URL;
10651066
createObjectURL(object: any, options?: ObjectURLOptions): string;
10661067
revokeObjectURL(url: string): void;
10671068
};

0 commit comments

Comments
 (0)