Skip to content

Commit 996fb78

Browse files
authored
Test update of DOM. (#28050)
Based on the few changes that have been accepted since Mohamed left.
1 parent 3c5f1a6 commit 996fb78

File tree

2 files changed

+52
-21
lines changed

2 files changed

+52
-21
lines changed

src/lib/dom.generated.d.ts

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ interface BiquadFilterOptions extends AudioNodeOptions {
142142
}
143143

144144
interface BlobPropertyBag {
145+
endings?: EndingType;
145146
type?: string;
146147
}
147148

@@ -200,11 +201,12 @@ interface ComputedEffectTiming extends EffectTiming {
200201
progress?: number | null;
201202
}
202203

203-
interface ComputedKeyframe extends Record<keyof CSSStyleDeclaration, string> {
204-
composite?: CompositeOperation | null;
205-
computedOffset?: number;
206-
easing?: string;
207-
offset?: number | null;
204+
interface ComputedKeyframe {
205+
composite: CompositeOperationOrAuto;
206+
computedOffset: number;
207+
easing: string;
208+
offset: number | null;
209+
[property: string]: string | number | null | undefined;
208210
}
209211

210212
interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
@@ -566,10 +568,11 @@ interface KeyboardEventInit extends EventModifierInit {
566568
repeat?: boolean;
567569
}
568570

569-
interface Keyframe extends Record<keyof CSSStyleDeclaration, string> {
570-
composite?: CompositeOperation | null;
571+
interface Keyframe {
572+
composite?: CompositeOperationOrAuto;
571573
easing?: string;
572574
offset?: number | null;
575+
[property: string]: string | number | null | undefined;
573576
}
574577

575578
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
@@ -921,10 +924,11 @@ interface PromiseRejectionEventInit extends EventInit {
921924
reason?: any;
922925
}
923926

924-
interface PropertyIndexedKeyframes extends Record<keyof CSSStyleDeclaration, string | string[]> {
925-
composite?: CompositeOperation | (CompositeOperation | null)[];
927+
interface PropertyIndexedKeyframes {
928+
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
926929
easing?: string | string[];
927930
offset?: number | (number | null)[];
931+
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
928932
}
929933

930934
interface PushSubscriptionJSON {
@@ -3984,7 +3988,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
39843988
/**
39853989
* Gets a reference to the root node of the document.
39863990
*/
3987-
readonly documentElement: HTMLElement | null;
3991+
readonly documentElement: HTMLElement;
39883992
/**
39893993
* Returns document's URL.
39903994
*/
@@ -4016,7 +4020,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
40164020
/**
40174021
* Returns the head element.
40184022
*/
4019-
readonly head: HTMLHeadElement | null;
4023+
readonly head: HTMLHeadElement;
40204024
readonly hidden: boolean;
40214025
/**
40224026
* Retrieves a collection, in source order, of img objects in the document.
@@ -4046,7 +4050,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
40464050
/**
40474051
* Contains information about the current URL.
40484052
*/
4049-
location: Location | null;
4053+
location: Location;
40504054
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
40514055
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
40524056
/**
@@ -4329,7 +4333,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
43294333
*/
43304334
elementFromPoint(x: number, y: number): Element | null;
43314335
elementsFromPoint(x: number, y: number): Element[];
4332-
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
4336+
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | ((prefix: string) => string | null) | null, type: number, result: XPathResult | null): XPathResult;
43334337
/**
43344338
* Executes a command on the current document, current selection, or the given range.
43354339
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
@@ -5013,7 +5017,7 @@ interface FileReader extends EventTarget {
50135017
readAsArrayBuffer(blob: Blob): void;
50145018
readAsBinaryString(blob: Blob): void;
50155019
readAsDataURL(blob: Blob): void;
5016-
readAsText(blob: Blob, label?: string): void;
5020+
readAsText(blob: Blob, encoding?: string): void;
50175021
readonly DONE: number;
50185022
readonly EMPTY: number;
50195023
readonly LOADING: number;
@@ -7135,7 +7139,7 @@ interface HTMLMediaElement extends HTMLElement {
71357139
*/
71367140
readonly seekable: TimeRanges;
71377141
/**
7138-
* Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.
7142+
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
71397143
*/
71407144
readonly seeking: boolean;
71417145
/**
@@ -11799,7 +11803,7 @@ declare var ReadableStreamReader: {
1179911803
interface Request extends Body {
1180011804
/**
1180111805
* Returns the cache mode associated with request, which is a string indicating
11802-
* how the the request will interact with the browser's cache when fetching.
11806+
* how the request will interact with the browser's cache when fetching.
1180311807
*/
1180411808
readonly cache: RequestCache;
1180511809
/**
@@ -16752,7 +16756,7 @@ declare var XMLSerializer: {
1675216756
interface XPathEvaluator {
1675316757
createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
1675416758
createNSResolver(nodeResolver?: Node): XPathNSResolver;
16755-
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
16759+
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | ((prefix: string) => string | null) | null, type: number, result: XPathResult | null): XPathResult;
1675616760
}
1675716761

1675816762
declare var XPathEvaluator: {
@@ -16770,7 +16774,7 @@ declare var XPathExpression: {
1677016774
};
1677116775

1677216776
interface XPathNSResolver {
16773-
lookupNamespaceURI(prefix: string): string;
16777+
lookupNamespaceURI(prefix: string): string | null;
1677416778
}
1677516779

1677616780
declare var XPathNSResolver: {
@@ -17648,11 +17652,13 @@ type ChannelCountMode = "max" | "clamped-max" | "explicit";
1764817652
type ChannelInterpretation = "speakers" | "discrete";
1764917653
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
1765017654
type CompositeOperation = "replace" | "add" | "accumulate";
17655+
type CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";
1765117656
type DirectionSetting = "" | "rl" | "lr";
1765217657
type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";
1765317658
type DistanceModelType = "linear" | "inverse" | "exponential";
1765417659
type DocumentReadyState = "loading" | "interactive" | "complete";
1765517660
type EndOfStreamError = "network" | "decode";
17661+
type EndingType = "transparent" | "native";
1765617662
type FillMode = "none" | "forwards" | "backwards" | "both" | "auto";
1765717663
type GamepadHand = "" | "left" | "right";
1765817664
type GamepadHapticActuatorType = "vibration";

src/lib/webworker.generated.d.ts

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface Algorithm {
3939
}
4040

4141
interface BlobPropertyBag {
42+
endings?: EndingType;
4243
type?: string;
4344
}
4445

@@ -1197,7 +1198,7 @@ interface FileReader extends EventTarget {
11971198
readAsArrayBuffer(blob: Blob): void;
11981199
readAsBinaryString(blob: Blob): void;
11991200
readAsDataURL(blob: Blob): void;
1200-
readAsText(blob: Blob, label?: string): void;
1201+
readAsText(blob: Blob, encoding?: string): void;
12011202
readonly DONE: number;
12021203
readonly EMPTY: number;
12031204
readonly LOADING: number;
@@ -1219,7 +1220,7 @@ interface FileReaderSync {
12191220
readAsArrayBuffer(blob: Blob): ArrayBuffer;
12201221
readAsBinaryString(blob: Blob): string;
12211222
readAsDataURL(blob: Blob): string;
1222-
readAsText(blob: Blob, label?: string): string;
1223+
readAsText(blob: Blob, encoding?: string): string;
12231224
}
12241225

12251226
declare var FileReaderSync: {
@@ -2202,7 +2203,7 @@ declare var ReadableStreamReader: {
22022203
interface Request extends Body {
22032204
/**
22042205
* Returns the cache mode associated with request, which is a string indicating
2205-
* how the the request will interact with the browser's cache when fetching.
2206+
* how the request will interact with the browser's cache when fetching.
22062207
*/
22072208
readonly cache: RequestCache;
22082209
/**
@@ -2524,6 +2525,29 @@ declare var TextEncoder: {
25242525
new(): TextEncoder;
25252526
};
25262527

2528+
interface TextMetrics {
2529+
readonly actualBoundingBoxAscent: number;
2530+
readonly actualBoundingBoxDescent: number;
2531+
readonly actualBoundingBoxLeft: number;
2532+
readonly actualBoundingBoxRight: number;
2533+
readonly alphabeticBaseline: number;
2534+
readonly emHeightAscent: number;
2535+
readonly emHeightDescent: number;
2536+
readonly fontBoundingBoxAscent: number;
2537+
readonly fontBoundingBoxDescent: number;
2538+
readonly hangingBaseline: number;
2539+
/**
2540+
* Returns the measurement described below.
2541+
*/
2542+
readonly ideographicBaseline: number;
2543+
readonly width: number;
2544+
}
2545+
2546+
declare var TextMetrics: {
2547+
prototype: TextMetrics;
2548+
new(): TextMetrics;
2549+
};
2550+
25272551
interface URL {
25282552
hash: string;
25292553
host: string;
@@ -2967,6 +2991,7 @@ type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
29672991
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
29682992
type BinaryType = "blob" | "arraybuffer";
29692993
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
2994+
type EndingType = "transparent" | "native";
29702995
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
29712996
type IDBRequestReadyState = "pending" | "done";
29722997
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";

0 commit comments

Comments
 (0)