@types/web 0.0.176 → 0.0.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +112 -0
- package/iterable.d.ts +3 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +109 -0
- package/ts5.5/iterable.d.ts +3 -0
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.177 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.177.
|
package/index.d.ts
CHANGED
|
@@ -1182,6 +1182,15 @@ interface OscillatorOptions extends AudioNodeOptions {
|
|
|
1182
1182
|
type?: OscillatorType;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
+
interface PageRevealEventInit extends EventInit {
|
|
1186
|
+
viewTransition?: ViewTransition | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
interface PageSwapEventInit extends EventInit {
|
|
1190
|
+
activation?: NavigationActivation | null;
|
|
1191
|
+
viewTransition?: ViewTransition | null;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1185
1194
|
interface PageTransitionEventInit extends EventInit {
|
|
1186
1195
|
persisted?: boolean;
|
|
1187
1196
|
}
|
|
@@ -5031,6 +5040,7 @@ interface CSSStyleDeclaration {
|
|
|
5031
5040
|
vectorEffect: string;
|
|
5032
5041
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
|
|
5033
5042
|
verticalAlign: string;
|
|
5043
|
+
viewTransitionClass: string;
|
|
5034
5044
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
|
|
5035
5045
|
viewTransitionName: string;
|
|
5036
5046
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
|
|
@@ -5669,6 +5679,16 @@ declare var CSSVariableReferenceValue: {
|
|
|
5669
5679
|
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
|
|
5670
5680
|
};
|
|
5671
5681
|
|
|
5682
|
+
interface CSSViewTransitionRule extends CSSRule {
|
|
5683
|
+
readonly navigation: string;
|
|
5684
|
+
readonly types: ReadonlyArray<string>;
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
declare var CSSViewTransitionRule: {
|
|
5688
|
+
prototype: CSSViewTransitionRule;
|
|
5689
|
+
new(): CSSViewTransitionRule;
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5672
5692
|
/**
|
|
5673
5693
|
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
|
|
5674
5694
|
* Available only in secure contexts.
|
|
@@ -7640,6 +7660,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7640
7660
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
7641
7661
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
7642
7662
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
7663
|
+
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
7664
|
+
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
7643
7665
|
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
|
|
7644
7666
|
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
|
|
7645
7667
|
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
|
|
@@ -11814,6 +11836,9 @@ declare var HTMLLegendElement: {
|
|
|
11814
11836
|
interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
11815
11837
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
|
|
11816
11838
|
as: string;
|
|
11839
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
|
|
11840
|
+
get blocking(): DOMTokenList;
|
|
11841
|
+
set blocking(value: string);
|
|
11817
11842
|
/**
|
|
11818
11843
|
* Sets or retrieves the character set used to encode the object.
|
|
11819
11844
|
* @deprecated
|
|
@@ -12829,6 +12854,9 @@ declare var HTMLQuoteElement: {
|
|
|
12829
12854
|
interface HTMLScriptElement extends HTMLElement {
|
|
12830
12855
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
|
|
12831
12856
|
async: boolean;
|
|
12857
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
|
|
12858
|
+
get blocking(): DOMTokenList;
|
|
12859
|
+
set blocking(value: string);
|
|
12832
12860
|
/**
|
|
12833
12861
|
* Sets or retrieves the character set used to encode the object.
|
|
12834
12862
|
* @deprecated
|
|
@@ -13116,6 +13144,9 @@ declare var HTMLSpanElement: {
|
|
|
13116
13144
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
|
|
13117
13145
|
*/
|
|
13118
13146
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
13147
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
|
|
13148
|
+
get blocking(): DOMTokenList;
|
|
13149
|
+
set blocking(value: string);
|
|
13119
13150
|
/**
|
|
13120
13151
|
* Enables or disables the style sheet.
|
|
13121
13152
|
*
|
|
@@ -16499,6 +16530,52 @@ declare var NamedNodeMap: {
|
|
|
16499
16530
|
new(): NamedNodeMap;
|
|
16500
16531
|
};
|
|
16501
16532
|
|
|
16533
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
|
|
16534
|
+
interface NavigationActivation {
|
|
16535
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
|
|
16536
|
+
readonly entry: NavigationHistoryEntry;
|
|
16537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
|
|
16538
|
+
readonly from: NavigationHistoryEntry | null;
|
|
16539
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
|
|
16540
|
+
readonly navigationType: NavigationType;
|
|
16541
|
+
}
|
|
16542
|
+
|
|
16543
|
+
declare var NavigationActivation: {
|
|
16544
|
+
prototype: NavigationActivation;
|
|
16545
|
+
new(): NavigationActivation;
|
|
16546
|
+
};
|
|
16547
|
+
|
|
16548
|
+
interface NavigationHistoryEntryEventMap {
|
|
16549
|
+
"dispose": Event;
|
|
16550
|
+
}
|
|
16551
|
+
|
|
16552
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
|
|
16553
|
+
interface NavigationHistoryEntry extends EventTarget {
|
|
16554
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
|
|
16555
|
+
readonly id: string;
|
|
16556
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
|
|
16557
|
+
readonly index: number;
|
|
16558
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
|
|
16559
|
+
readonly key: string;
|
|
16560
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
|
|
16561
|
+
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
|
|
16562
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
|
|
16563
|
+
readonly sameDocument: boolean;
|
|
16564
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
|
|
16565
|
+
readonly url: string | null;
|
|
16566
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
|
|
16567
|
+
getState(): any;
|
|
16568
|
+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16569
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16570
|
+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
16571
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
16572
|
+
}
|
|
16573
|
+
|
|
16574
|
+
declare var NavigationHistoryEntry: {
|
|
16575
|
+
prototype: NavigationHistoryEntry;
|
|
16576
|
+
new(): NavigationHistoryEntry;
|
|
16577
|
+
};
|
|
16578
|
+
|
|
16502
16579
|
/**
|
|
16503
16580
|
* Available only in secure contexts.
|
|
16504
16581
|
*
|
|
@@ -17356,6 +17433,30 @@ declare var OverconstrainedError: {
|
|
|
17356
17433
|
new(constraint: string, message?: string): OverconstrainedError;
|
|
17357
17434
|
};
|
|
17358
17435
|
|
|
17436
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
|
|
17437
|
+
interface PageRevealEvent extends Event {
|
|
17438
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
|
|
17439
|
+
readonly viewTransition: ViewTransition | null;
|
|
17440
|
+
}
|
|
17441
|
+
|
|
17442
|
+
declare var PageRevealEvent: {
|
|
17443
|
+
prototype: PageRevealEvent;
|
|
17444
|
+
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
|
|
17445
|
+
};
|
|
17446
|
+
|
|
17447
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
|
|
17448
|
+
interface PageSwapEvent extends Event {
|
|
17449
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
|
|
17450
|
+
readonly activation: NavigationActivation | null;
|
|
17451
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
|
|
17452
|
+
readonly viewTransition: ViewTransition | null;
|
|
17453
|
+
}
|
|
17454
|
+
|
|
17455
|
+
declare var PageSwapEvent: {
|
|
17456
|
+
prototype: PageSwapEvent;
|
|
17457
|
+
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
|
|
17458
|
+
};
|
|
17459
|
+
|
|
17359
17460
|
/**
|
|
17360
17461
|
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
|
|
17361
17462
|
*
|
|
@@ -23747,6 +23848,7 @@ interface ViewTransition {
|
|
|
23747
23848
|
readonly finished: Promise<undefined>;
|
|
23748
23849
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
|
|
23749
23850
|
readonly ready: Promise<undefined>;
|
|
23851
|
+
types: ViewTransitionTypeSet;
|
|
23750
23852
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
|
|
23751
23853
|
readonly updateCallbackDone: Promise<undefined>;
|
|
23752
23854
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
|
|
@@ -23758,6 +23860,15 @@ declare var ViewTransition: {
|
|
|
23758
23860
|
new(): ViewTransition;
|
|
23759
23861
|
};
|
|
23760
23862
|
|
|
23863
|
+
interface ViewTransitionTypeSet {
|
|
23864
|
+
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
|
|
23865
|
+
}
|
|
23866
|
+
|
|
23867
|
+
declare var ViewTransitionTypeSet: {
|
|
23868
|
+
prototype: ViewTransitionTypeSet;
|
|
23869
|
+
new(): ViewTransitionTypeSet;
|
|
23870
|
+
};
|
|
23871
|
+
|
|
23761
23872
|
interface VisualViewportEventMap {
|
|
23762
23873
|
"resize": Event;
|
|
23763
23874
|
"scroll": Event;
|
|
@@ -29047,6 +29158,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
|
|
|
29047
29158
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
29048
29159
|
type MediaStreamTrackState = "ended" | "live";
|
|
29049
29160
|
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
29161
|
+
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
29050
29162
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
29051
29163
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
29052
29164
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
package/iterable.d.ts
CHANGED
|
@@ -349,6 +349,9 @@ interface URLSearchParams {
|
|
|
349
349
|
values(): URLSearchParamsIterator<string>;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
interface ViewTransitionTypeSet extends Set<string> {
|
|
353
|
+
}
|
|
354
|
+
|
|
352
355
|
interface WEBGL_draw_buffers {
|
|
353
356
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
|
|
354
357
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1182,6 +1182,15 @@ interface OscillatorOptions extends AudioNodeOptions {
|
|
|
1182
1182
|
type?: OscillatorType;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
+
interface PageRevealEventInit extends EventInit {
|
|
1186
|
+
viewTransition?: ViewTransition | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
interface PageSwapEventInit extends EventInit {
|
|
1190
|
+
activation?: NavigationActivation | null;
|
|
1191
|
+
viewTransition?: ViewTransition | null;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1185
1194
|
interface PageTransitionEventInit extends EventInit {
|
|
1186
1195
|
persisted?: boolean;
|
|
1187
1196
|
}
|
|
@@ -5025,6 +5034,7 @@ interface CSSStyleDeclaration {
|
|
|
5025
5034
|
vectorEffect: string;
|
|
5026
5035
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
|
|
5027
5036
|
verticalAlign: string;
|
|
5037
|
+
viewTransitionClass: string;
|
|
5028
5038
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
|
|
5029
5039
|
viewTransitionName: string;
|
|
5030
5040
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
|
|
@@ -5662,6 +5672,16 @@ declare var CSSVariableReferenceValue: {
|
|
|
5662
5672
|
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
|
|
5663
5673
|
};
|
|
5664
5674
|
|
|
5675
|
+
interface CSSViewTransitionRule extends CSSRule {
|
|
5676
|
+
readonly navigation: string;
|
|
5677
|
+
readonly types: ReadonlyArray<string>;
|
|
5678
|
+
}
|
|
5679
|
+
|
|
5680
|
+
declare var CSSViewTransitionRule: {
|
|
5681
|
+
prototype: CSSViewTransitionRule;
|
|
5682
|
+
new(): CSSViewTransitionRule;
|
|
5683
|
+
};
|
|
5684
|
+
|
|
5665
5685
|
/**
|
|
5666
5686
|
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
|
|
5667
5687
|
* Available only in secure contexts.
|
|
@@ -7633,6 +7653,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7633
7653
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
7634
7654
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
7635
7655
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
7656
|
+
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
7657
|
+
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
7636
7658
|
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
|
|
7637
7659
|
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
|
|
7638
7660
|
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
|
|
@@ -11800,6 +11822,8 @@ declare var HTMLLegendElement: {
|
|
|
11800
11822
|
interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
11801
11823
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
|
|
11802
11824
|
as: string;
|
|
11825
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
|
|
11826
|
+
readonly blocking: DOMTokenList;
|
|
11803
11827
|
/**
|
|
11804
11828
|
* Sets or retrieves the character set used to encode the object.
|
|
11805
11829
|
* @deprecated
|
|
@@ -12812,6 +12836,8 @@ declare var HTMLQuoteElement: {
|
|
|
12812
12836
|
interface HTMLScriptElement extends HTMLElement {
|
|
12813
12837
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
|
|
12814
12838
|
async: boolean;
|
|
12839
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
|
|
12840
|
+
readonly blocking: DOMTokenList;
|
|
12815
12841
|
/**
|
|
12816
12842
|
* Sets or retrieves the character set used to encode the object.
|
|
12817
12843
|
* @deprecated
|
|
@@ -13099,6 +13125,8 @@ declare var HTMLSpanElement: {
|
|
|
13099
13125
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
|
|
13100
13126
|
*/
|
|
13101
13127
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
13128
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
|
|
13129
|
+
readonly blocking: DOMTokenList;
|
|
13102
13130
|
/**
|
|
13103
13131
|
* Enables or disables the style sheet.
|
|
13104
13132
|
*
|
|
@@ -16482,6 +16510,52 @@ declare var NamedNodeMap: {
|
|
|
16482
16510
|
new(): NamedNodeMap;
|
|
16483
16511
|
};
|
|
16484
16512
|
|
|
16513
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
|
|
16514
|
+
interface NavigationActivation {
|
|
16515
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
|
|
16516
|
+
readonly entry: NavigationHistoryEntry;
|
|
16517
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
|
|
16518
|
+
readonly from: NavigationHistoryEntry | null;
|
|
16519
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
|
|
16520
|
+
readonly navigationType: NavigationType;
|
|
16521
|
+
}
|
|
16522
|
+
|
|
16523
|
+
declare var NavigationActivation: {
|
|
16524
|
+
prototype: NavigationActivation;
|
|
16525
|
+
new(): NavigationActivation;
|
|
16526
|
+
};
|
|
16527
|
+
|
|
16528
|
+
interface NavigationHistoryEntryEventMap {
|
|
16529
|
+
"dispose": Event;
|
|
16530
|
+
}
|
|
16531
|
+
|
|
16532
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
|
|
16533
|
+
interface NavigationHistoryEntry extends EventTarget {
|
|
16534
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
|
|
16535
|
+
readonly id: string;
|
|
16536
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
|
|
16537
|
+
readonly index: number;
|
|
16538
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
|
|
16539
|
+
readonly key: string;
|
|
16540
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
|
|
16541
|
+
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
|
|
16542
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
|
|
16543
|
+
readonly sameDocument: boolean;
|
|
16544
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
|
|
16545
|
+
readonly url: string | null;
|
|
16546
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
|
|
16547
|
+
getState(): any;
|
|
16548
|
+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16549
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16550
|
+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
16551
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
16552
|
+
}
|
|
16553
|
+
|
|
16554
|
+
declare var NavigationHistoryEntry: {
|
|
16555
|
+
prototype: NavigationHistoryEntry;
|
|
16556
|
+
new(): NavigationHistoryEntry;
|
|
16557
|
+
};
|
|
16558
|
+
|
|
16485
16559
|
/**
|
|
16486
16560
|
* Available only in secure contexts.
|
|
16487
16561
|
*
|
|
@@ -17339,6 +17413,30 @@ declare var OverconstrainedError: {
|
|
|
17339
17413
|
new(constraint: string, message?: string): OverconstrainedError;
|
|
17340
17414
|
};
|
|
17341
17415
|
|
|
17416
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
|
|
17417
|
+
interface PageRevealEvent extends Event {
|
|
17418
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
|
|
17419
|
+
readonly viewTransition: ViewTransition | null;
|
|
17420
|
+
}
|
|
17421
|
+
|
|
17422
|
+
declare var PageRevealEvent: {
|
|
17423
|
+
prototype: PageRevealEvent;
|
|
17424
|
+
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
|
|
17425
|
+
};
|
|
17426
|
+
|
|
17427
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
|
|
17428
|
+
interface PageSwapEvent extends Event {
|
|
17429
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
|
|
17430
|
+
readonly activation: NavigationActivation | null;
|
|
17431
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
|
|
17432
|
+
readonly viewTransition: ViewTransition | null;
|
|
17433
|
+
}
|
|
17434
|
+
|
|
17435
|
+
declare var PageSwapEvent: {
|
|
17436
|
+
prototype: PageSwapEvent;
|
|
17437
|
+
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
|
|
17438
|
+
};
|
|
17439
|
+
|
|
17342
17440
|
/**
|
|
17343
17441
|
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
|
|
17344
17442
|
*
|
|
@@ -23728,6 +23826,7 @@ interface ViewTransition {
|
|
|
23728
23826
|
readonly finished: Promise<undefined>;
|
|
23729
23827
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
|
|
23730
23828
|
readonly ready: Promise<undefined>;
|
|
23829
|
+
types: ViewTransitionTypeSet;
|
|
23731
23830
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
|
|
23732
23831
|
readonly updateCallbackDone: Promise<undefined>;
|
|
23733
23832
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
|
|
@@ -23739,6 +23838,15 @@ declare var ViewTransition: {
|
|
|
23739
23838
|
new(): ViewTransition;
|
|
23740
23839
|
};
|
|
23741
23840
|
|
|
23841
|
+
interface ViewTransitionTypeSet {
|
|
23842
|
+
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
|
|
23843
|
+
}
|
|
23844
|
+
|
|
23845
|
+
declare var ViewTransitionTypeSet: {
|
|
23846
|
+
prototype: ViewTransitionTypeSet;
|
|
23847
|
+
new(): ViewTransitionTypeSet;
|
|
23848
|
+
};
|
|
23849
|
+
|
|
23742
23850
|
interface VisualViewportEventMap {
|
|
23743
23851
|
"resize": Event;
|
|
23744
23852
|
"scroll": Event;
|
|
@@ -29028,6 +29136,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
|
|
|
29028
29136
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
29029
29137
|
type MediaStreamTrackState = "ended" | "live";
|
|
29030
29138
|
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
29139
|
+
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
29031
29140
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
29032
29141
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
29033
29142
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -329,6 +329,9 @@ interface URLSearchParams {
|
|
|
329
329
|
values(): IterableIterator<string>;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
+
interface ViewTransitionTypeSet extends Set<string> {
|
|
333
|
+
}
|
|
334
|
+
|
|
332
335
|
interface WEBGL_draw_buffers {
|
|
333
336
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
|
|
334
337
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|