@@ -1496,6 +1496,16 @@ interface RTCTransportStats extends RTCStats {
1496
1496
selectedCandidatePairId?: string;
1497
1497
}
1498
1498
1499
+ interface ReadableStreamReadDoneResult<T> {
1500
+ done: true;
1501
+ value?: T;
1502
+ }
1503
+
1504
+ interface ReadableStreamReadValueResult<T> {
1505
+ done: false;
1506
+ value: T;
1507
+ }
1508
+
1499
1509
interface RegistrationOptions {
1500
1510
scope?: string;
1501
1511
type?: WorkerType;
@@ -2815,7 +2825,7 @@ interface CSSStyleDeclaration {
2815
2825
clip: string;
2816
2826
clipPath: string;
2817
2827
clipRule: string;
2818
- color: string | null ;
2828
+ color: string;
2819
2829
colorInterpolation: string;
2820
2830
colorInterpolationFilters: string;
2821
2831
columnCount: string;
@@ -2992,7 +3002,7 @@ interface CSSStyleDeclaration {
2992
3002
msWrapThrough: string;
2993
3003
objectFit: string;
2994
3004
objectPosition: string;
2995
- opacity: string | null ;
3005
+ opacity: string;
2996
3006
order: string;
2997
3007
orphans: string;
2998
3008
outline: string;
@@ -3032,14 +3042,14 @@ interface CSSStyleDeclaration {
3032
3042
right: string;
3033
3043
rotate: string;
3034
3044
rowGap: string;
3035
- rubyAlign: string | null ;
3045
+ rubyAlign: string;
3036
3046
rubyOverhang: string | null;
3037
- rubyPosition: string | null ;
3047
+ rubyPosition: string;
3038
3048
scale: string;
3039
3049
scrollBehavior: string;
3040
3050
shapeRendering: string;
3041
- stopColor: string | null ;
3042
- stopOpacity: string | null ;
3051
+ stopColor: string;
3052
+ stopOpacity: string;
3043
3053
stroke: string;
3044
3054
strokeDasharray: string;
3045
3055
strokeDashoffset: string;
@@ -3052,7 +3062,7 @@ interface CSSStyleDeclaration {
3052
3062
tableLayout: string;
3053
3063
textAlign: string;
3054
3064
textAlignLast: string;
3055
- textAnchor: string | null ;
3065
+ textAnchor: string;
3056
3066
textCombineUpright: string;
3057
3067
textDecoration: string;
3058
3068
textDecorationColor: string;
@@ -3344,7 +3354,7 @@ interface CacheStorage {
3344
3354
delete(cacheName: string): Promise<boolean>;
3345
3355
has(cacheName: string): Promise<boolean>;
3346
3356
keys(): Promise<string[]>;
3347
- match(request: RequestInfo, options?: CacheQueryOptions ): Promise<Response | undefined>;
3357
+ match(request: RequestInfo, options?: MultiCacheQueryOptions ): Promise<Response | undefined>;
3348
3358
open(cacheName: string): Promise<Cache>;
3349
3359
}
3350
3360
@@ -4016,6 +4026,7 @@ interface DOMMatrixReadOnly {
4016
4026
toJSON(): any;
4017
4027
transformPoint(point?: DOMPointInit): DOMPoint;
4018
4028
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
4029
+ toString(): string;
4019
4030
}
4020
4031
4021
4032
declare var DOMMatrixReadOnly: {
@@ -4024,6 +4035,7 @@ declare var DOMMatrixReadOnly: {
4024
4035
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
4025
4036
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
4026
4037
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
4038
+ toString(): string;
4027
4039
};
4028
4040
4029
4041
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
@@ -4181,6 +4193,7 @@ interface DOMTokenList {
4181
4193
* Can be set, to change the associated attribute.
4182
4194
*/
4183
4195
value: string;
4196
+ toString(): string;
4184
4197
/**
4185
4198
* Adds all arguments passed, except those already present.
4186
4199
*
@@ -4416,6 +4429,7 @@ interface DeviceMotionEvent extends Event {
4416
4429
declare var DeviceMotionEvent: {
4417
4430
prototype: DeviceMotionEvent;
4418
4431
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
4432
+ requestPermission(): Promise<PermissionState>;
4419
4433
};
4420
4434
4421
4435
interface DeviceMotionEventAcceleration {
@@ -4441,6 +4455,7 @@ interface DeviceOrientationEvent extends Event {
4441
4455
declare var DeviceOrientationEvent: {
4442
4456
prototype: DeviceOrientationEvent;
4443
4457
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
4458
+ requestPermission(): Promise<PermissionState>;
4444
4459
};
4445
4460
4446
4461
/** Provides information about the rate at which the device is rotating around all three axes. */
@@ -6096,10 +6111,10 @@ interface GlobalEventHandlers {
6096
6111
*/
6097
6112
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
6098
6113
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
6099
- ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6100
- ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6101
- ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6102
- ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6114
+ ontouchcancel? : ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6115
+ ontouchend? : ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6116
+ ontouchmove? : ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6117
+ ontouchstart? : ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6103
6118
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
6104
6119
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
6105
6120
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
@@ -7059,6 +7074,7 @@ interface HTMLHyperlinkElementUtils {
7059
7074
host: string;
7060
7075
hostname: string;
7061
7076
href: string;
7077
+ toString(): string;
7062
7078
readonly origin: string;
7063
7079
password: string;
7064
7080
pathname: string;
@@ -7344,7 +7360,7 @@ interface HTMLInputElement extends HTMLElement {
7344
7360
* When present, marks an element that can't be submitted without a value.
7345
7361
*/
7346
7362
required: boolean;
7347
- selectionDirection: string | null;
7363
+ selectionDirection: "forward" | "backward" | "none" | null;
7348
7364
/**
7349
7365
* Gets or sets the end position or offset of a text selection.
7350
7366
*/
@@ -8935,7 +8951,7 @@ interface HTMLTextAreaElement extends HTMLElement {
8935
8951
* Sets or retrieves the number of horizontal rows contained in the object.
8936
8952
*/
8937
8953
rows: number;
8938
- selectionDirection: string ;
8954
+ selectionDirection: "forward" | "backward" | "none" ;
8939
8955
/**
8940
8956
* Gets or sets the end position or offset of a text selection.
8941
8957
*/
@@ -9912,6 +9928,7 @@ interface Location {
9912
9928
* Can be set, to navigate to the given URL.
9913
9929
*/
9914
9930
href: string;
9931
+ toString(): string;
9915
9932
/**
9916
9933
* Returns the Location object's URL's origin.
9917
9934
*/
@@ -10370,10 +10387,10 @@ declare var MediaKeys: {
10370
10387
interface MediaList {
10371
10388
readonly length: number;
10372
10389
mediaText: string;
10390
+ toString(): string;
10373
10391
appendMedium(medium: string): void;
10374
10392
deleteMedium(medium: string): void;
10375
10393
item(index: number): string | null;
10376
- toString(): number;
10377
10394
[index: number]: string;
10378
10395
}
10379
10396
@@ -10985,7 +11002,7 @@ interface Node extends EventTarget {
10985
11002
/**
10986
11003
* Returns the previous sibling.
10987
11004
*/
10988
- readonly previousSibling: Node | null;
11005
+ readonly previousSibling: ChildNode | null;
10989
11006
textContent: string | null;
10990
11007
appendChild<T extends Node>(newChild: T): T;
10991
11008
/**
@@ -12640,6 +12657,7 @@ interface Range extends AbstractRange {
12640
12657
setStartAfter(node: Node): void;
12641
12658
setStartBefore(node: Node): void;
12642
12659
surroundContents(newParent: Node): void;
12660
+ toString(): string;
12643
12661
readonly END_TO_END: number;
12644
12662
readonly END_TO_START: number;
12645
12663
readonly START_TO_END: number;
@@ -12653,6 +12671,7 @@ declare var Range: {
12653
12671
readonly END_TO_START: number;
12654
12672
readonly START_TO_END: number;
12655
12673
readonly START_TO_START: number;
12674
+ toString(): string;
12656
12675
};
12657
12676
12658
12677
interface ReadableByteStreamController {
@@ -12707,11 +12726,6 @@ interface ReadableStreamDefaultReader<R = any> {
12707
12726
releaseLock(): void;
12708
12727
}
12709
12728
12710
- interface ReadableStreamReadResult<T> {
12711
- done: boolean;
12712
- value: T;
12713
- }
12714
-
12715
12729
interface ReadableStreamReader<R = any> {
12716
12730
cancel(): Promise<void>;
12717
12731
read(): Promise<ReadableStreamReadResult<R>>;
@@ -14358,7 +14372,7 @@ declare var SVGPathSegMovetoRel: {
14358
14372
};
14359
14373
14360
14374
/** Corresponds to the <pattern> element. */
14361
- interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGTests, SVGURIReference {
14375
+ interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
14362
14376
readonly height: SVGAnimatedLength;
14363
14377
readonly patternContentUnits: SVGAnimatedEnumeration;
14364
14378
readonly patternTransform: SVGAnimatedTransformList;
@@ -14464,6 +14478,7 @@ declare var SVGPreserveAspectRatio: {
14464
14478
interface SVGRadialGradientElement extends SVGGradientElement {
14465
14479
readonly cx: SVGAnimatedLength;
14466
14480
readonly cy: SVGAnimatedLength;
14481
+ readonly fr: SVGAnimatedLength;
14467
14482
readonly fx: SVGAnimatedLength;
14468
14483
readonly fy: SVGAnimatedLength;
14469
14484
readonly r: SVGAnimatedLength;
@@ -14680,13 +14695,13 @@ interface SVGTests {
14680
14695
interface SVGTextContentElement extends SVGGraphicsElement {
14681
14696
readonly lengthAdjust: SVGAnimatedEnumeration;
14682
14697
readonly textLength: SVGAnimatedLength;
14683
- getCharNumAtPosition(point: SVGPoint ): number;
14698
+ getCharNumAtPosition(point?: DOMPointInit ): number;
14684
14699
getComputedTextLength(): number;
14685
- getEndPositionOfChar(charnum: number): SVGPoint ;
14686
- getExtentOfChar(charnum: number): SVGRect ;
14700
+ getEndPositionOfChar(charnum: number): DOMPoint ;
14701
+ getExtentOfChar(charnum: number): DOMRect ;
14687
14702
getNumberOfChars(): number;
14688
14703
getRotationOfChar(charnum: number): number;
14689
- getStartPositionOfChar(charnum: number): SVGPoint ;
14704
+ getStartPositionOfChar(charnum: number): DOMPoint ;
14690
14705
getSubStringLength(charnum: number, nchars: number): number;
14691
14706
selectSubString(charnum: number, nchars: number): void;
14692
14707
readonly LENGTHADJUST_SPACING: number;
@@ -15029,11 +15044,13 @@ interface Selection {
15029
15044
selectAllChildren(node: Node): void;
15030
15045
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
15031
15046
setPosition(node: Node | null, offset?: number): void;
15047
+ toString(): string;
15032
15048
}
15033
15049
15034
15050
declare var Selection: {
15035
15051
prototype: Selection;
15036
15052
new(): Selection;
15053
+ toString(): string;
15037
15054
};
15038
15055
15039
15056
interface ServiceUIFrameContext {
@@ -15660,6 +15677,8 @@ interface TextDecoderCommon {
15660
15677
}
15661
15678
15662
15679
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
15680
+ readonly readable: ReadableStream<string>;
15681
+ readonly writable: WritableStream<BufferSource>;
15663
15682
}
15664
15683
15665
15684
declare var TextDecoderStream: {
@@ -15692,6 +15711,8 @@ interface TextEncoderCommon {
15692
15711
}
15693
15712
15694
15713
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
15714
+ readonly readable: ReadableStream<Uint8Array>;
15715
+ readonly writable: WritableStream<string>;
15695
15716
}
15696
15717
15697
15718
declare var TextEncoderStream: {
@@ -16034,6 +16055,7 @@ interface URL {
16034
16055
host: string;
16035
16056
hostname: string;
16036
16057
href: string;
16058
+ toString(): string;
16037
16059
readonly origin: string;
16038
16060
password: string;
16039
16061
pathname: string;
@@ -16081,12 +16103,14 @@ interface URLSearchParams {
16081
16103
*/
16082
16104
set(name: string, value: string): void;
16083
16105
sort(): void;
16106
+ toString(): string;
16084
16107
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
16085
16108
}
16086
16109
16087
16110
declare var URLSearchParams: {
16088
16111
prototype: URLSearchParams;
16089
16112
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
16113
+ toString(): string;
16090
16114
};
16091
16115
16092
16116
/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */
@@ -18668,7 +18692,7 @@ interface WindowEventHandlersEventMap {
18668
18692
"pagehide": PageTransitionEvent;
18669
18693
"pageshow": PageTransitionEvent;
18670
18694
"popstate": PopStateEvent;
18671
- "rejectionhandled": Event ;
18695
+ "rejectionhandled": PromiseRejectionEvent ;
18672
18696
"storage": StorageEvent;
18673
18697
"unhandledrejection": PromiseRejectionEvent;
18674
18698
"unload": Event;
@@ -18687,7 +18711,7 @@ interface WindowEventHandlers {
18687
18711
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
18688
18712
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
18689
18713
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
18690
- onrejectionhandled: ((this: WindowEventHandlers, ev: Event ) => any) | null;
18714
+ onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent ) => any) | null;
18691
18715
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
18692
18716
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
18693
18717
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
@@ -19886,10 +19910,10 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
19886
19910
*/
19887
19911
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
19888
19912
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
19889
- declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null;
19890
- declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null;
19891
- declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null;
19892
- declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null;
19913
+ declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined ;
19914
+ declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined ;
19915
+ declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined ;
19916
+ declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined ;
19893
19917
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
19894
19918
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
19895
19919
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
@@ -19939,7 +19963,7 @@ declare var ononline: ((this: Window, ev: Event) => any) | null;
19939
19963
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
19940
19964
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
19941
19965
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
19942
- declare var onrejectionhandled: ((this: Window, ev: Event ) => any) | null;
19966
+ declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent ) => any) | null;
19943
19967
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
19944
19968
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
19945
19969
declare var onunload: ((this: Window, ev: Event) => any) | null;
@@ -19967,6 +19991,7 @@ type ConstrainDouble = number | ConstrainDoubleRange;
19967
19991
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
19968
19992
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
19969
19993
type PerformanceEntryList = PerformanceEntry[];
19994
+ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
19970
19995
type VibratePattern = number | number[];
19971
19996
type COSEAlgorithmIdentifier = number;
19972
19997
type AuthenticatorSelectionList = AAGUID[];
0 commit comments