@types/web 0.0.297 → 0.0.299
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 +426 -8
- package/package.json +1 -1
- package/ts5.5/index.d.ts +426 -8
- package/ts5.6/index.d.ts +426 -8
- package/ts5.9/index.d.ts +426 -8
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.299 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.299.
|
package/index.d.ts
CHANGED
|
@@ -950,12 +950,12 @@ interface KeySystemTrackConfiguration {
|
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
interface KeyboardEventInit extends EventModifierInit {
|
|
953
|
-
/** @deprecated */
|
|
953
|
+
/** @deprecated `charCode` is inconsistent across environments, consider using `key` instead. */
|
|
954
954
|
charCode?: number;
|
|
955
955
|
code?: string;
|
|
956
956
|
isComposing?: boolean;
|
|
957
957
|
key?: string;
|
|
958
|
-
/** @deprecated */
|
|
958
|
+
/** @deprecated `keyCode` is inconsistent across environments, consider using `key` instead. */
|
|
959
959
|
keyCode?: number;
|
|
960
960
|
location?: number;
|
|
961
961
|
repeat?: boolean;
|
|
@@ -1260,11 +1260,59 @@ interface MutationObserverInit {
|
|
|
1260
1260
|
subtree?: boolean;
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
+
interface NavigateEventInit extends EventInit {
|
|
1264
|
+
canIntercept?: boolean;
|
|
1265
|
+
destination: NavigationDestination;
|
|
1266
|
+
downloadRequest?: string | null;
|
|
1267
|
+
formData?: FormData | null;
|
|
1268
|
+
hasUAVisualTransition?: boolean;
|
|
1269
|
+
hashChange?: boolean;
|
|
1270
|
+
info?: any;
|
|
1271
|
+
navigationType?: NavigationType;
|
|
1272
|
+
signal: AbortSignal;
|
|
1273
|
+
sourceElement?: Element | null;
|
|
1274
|
+
userInitiated?: boolean;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
interface NavigationCurrentEntryChangeEventInit extends EventInit {
|
|
1278
|
+
from: NavigationHistoryEntry;
|
|
1279
|
+
navigationType?: NavigationType | null;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
interface NavigationInterceptOptions {
|
|
1283
|
+
focusReset?: NavigationFocusReset;
|
|
1284
|
+
handler?: NavigationInterceptHandler;
|
|
1285
|
+
precommitHandler?: NavigationPrecommitHandler;
|
|
1286
|
+
scroll?: NavigationScrollBehavior;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
interface NavigationNavigateOptions extends NavigationOptions {
|
|
1290
|
+
history?: NavigationHistoryBehavior;
|
|
1291
|
+
state?: any;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
interface NavigationOptions {
|
|
1295
|
+
info?: any;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1263
1298
|
interface NavigationPreloadState {
|
|
1264
1299
|
enabled?: boolean;
|
|
1265
1300
|
headerValue?: string;
|
|
1266
1301
|
}
|
|
1267
1302
|
|
|
1303
|
+
interface NavigationReloadOptions extends NavigationOptions {
|
|
1304
|
+
state?: any;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
interface NavigationResult {
|
|
1308
|
+
committed?: Promise<NavigationHistoryEntry>;
|
|
1309
|
+
finished?: Promise<NavigationHistoryEntry>;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
interface NavigationUpdateCurrentEntryOptions {
|
|
1313
|
+
state: any;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1268
1316
|
interface NotificationOptions {
|
|
1269
1317
|
badge?: string;
|
|
1270
1318
|
body?: string;
|
|
@@ -6305,6 +6353,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6305
6353
|
*/
|
|
6306
6354
|
backgroundSize: string;
|
|
6307
6355
|
baselineShift: string;
|
|
6356
|
+
/** The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. */
|
|
6308
6357
|
baselineSource: string;
|
|
6309
6358
|
/**
|
|
6310
6359
|
* The block-size CSS property defines the size of an element's block along the block axis. If the writing-mode is horizontal, it corresponds to the height; if the writing mode is vertical, it corresponds to the width. A related property is inline-size, which defines the other dimension of the element.
|
|
@@ -6985,6 +7034,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6985
7034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/empty-cells)
|
|
6986
7035
|
*/
|
|
6987
7036
|
emptyCells: string;
|
|
7037
|
+
/**
|
|
7038
|
+
* The field-sizing CSS property enables you to control the sizing behavior of elements that are given a default preferred size, such as form control elements. This property enables you to override the default sizing behavior, allowing form controls to adjust in size to fit their contents.
|
|
7039
|
+
*
|
|
7040
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/field-sizing)
|
|
7041
|
+
*/
|
|
7042
|
+
fieldSizing: string;
|
|
6988
7043
|
/**
|
|
6989
7044
|
* The **`fill`** CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute.
|
|
6990
7045
|
*
|
|
@@ -8053,6 +8108,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8053
8108
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-try-order)
|
|
8054
8109
|
*/
|
|
8055
8110
|
positionTryOrder: string;
|
|
8111
|
+
/**
|
|
8112
|
+
* The position-visibility CSS property enables conditionally hiding an anchor-positioned element depending on, for example, whether it is overflowing its containing element or the viewport.
|
|
8113
|
+
*
|
|
8114
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-visibility)
|
|
8115
|
+
*/
|
|
8116
|
+
positionVisibility: string;
|
|
8056
8117
|
/**
|
|
8057
8118
|
* The print-color-adjust CSS property sets what, if anything, the user agent may do to optimize the appearance of the element on the output device. By default, the browser is allowed to make any adjustments to the element's appearance it determines to be necessary and prudent given the type and capabilities of the output device.
|
|
8058
8119
|
*
|
|
@@ -8546,7 +8607,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8546
8607
|
*/
|
|
8547
8608
|
textRendering: string;
|
|
8548
8609
|
/**
|
|
8549
|
-
* The text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and any of its
|
|
8610
|
+
* The text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and any of its text-decoration. Each shadow is described by some combination of X and Y offsets from the element, blur radius, and color.
|
|
8550
8611
|
*
|
|
8551
8612
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/text-shadow)
|
|
8552
8613
|
*/
|
|
@@ -9198,7 +9259,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
9198
9259
|
*/
|
|
9199
9260
|
wordSpacing: string;
|
|
9200
9261
|
/**
|
|
9201
|
-
* @deprecated
|
|
9262
|
+
* @deprecated `word-wrap` is a legacy alias of `overflow-wrap`.
|
|
9202
9263
|
*
|
|
9203
9264
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/overflow-wrap)
|
|
9204
9265
|
*/
|
|
@@ -11992,6 +12053,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
11992
12053
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
|
|
11993
12054
|
*/
|
|
11994
12055
|
readonly URL: string;
|
|
12056
|
+
/**
|
|
12057
|
+
* The **`activeViewTransition`** read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
|
|
12058
|
+
*
|
|
12059
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeViewTransition)
|
|
12060
|
+
*/
|
|
12061
|
+
readonly activeViewTransition: ViewTransition | null;
|
|
11995
12062
|
/**
|
|
11996
12063
|
* Returns or sets the color of an active link in the document body. A link is active during the time between mousedown and mouseup events.
|
|
11997
12064
|
* @deprecated
|
|
@@ -12411,6 +12478,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
12411
12478
|
createEvent(eventInterface: "MessageEvent"): MessageEvent;
|
|
12412
12479
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
12413
12480
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
12481
|
+
createEvent(eventInterface: "NavigateEvent"): NavigateEvent;
|
|
12482
|
+
createEvent(eventInterface: "NavigationCurrentEntryChangeEvent"): NavigationCurrentEntryChangeEvent;
|
|
12414
12483
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
12415
12484
|
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
12416
12485
|
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
@@ -21547,7 +21616,7 @@ declare var KeyframeEffect: {
|
|
|
21547
21616
|
*
|
|
21548
21617
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
|
|
21549
21618
|
*/
|
|
21550
|
-
interface LargestContentfulPaint extends PerformanceEntry {
|
|
21619
|
+
interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin {
|
|
21551
21620
|
/**
|
|
21552
21621
|
* The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
|
|
21553
21622
|
*
|
|
@@ -23562,6 +23631,182 @@ declare var NamedNodeMap: {
|
|
|
23562
23631
|
new(): NamedNodeMap;
|
|
23563
23632
|
};
|
|
23564
23633
|
|
|
23634
|
+
/**
|
|
23635
|
+
* The **`NavigateEvent`** interface of the Navigation API is the event object for the navigate event, which fires when any type of navigation is initiated (this includes usage of History API features like History.go()). NavigateEvent provides access to information about that navigation, and allows developers to intercept and control the navigation handling.
|
|
23636
|
+
*
|
|
23637
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent)
|
|
23638
|
+
*/
|
|
23639
|
+
interface NavigateEvent extends Event {
|
|
23640
|
+
/**
|
|
23641
|
+
* The **`canIntercept`** read-only property of the NavigateEvent interface returns true if the navigation can be intercepted and have its URL rewritten, or false otherwise
|
|
23642
|
+
*
|
|
23643
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/canIntercept)
|
|
23644
|
+
*/
|
|
23645
|
+
readonly canIntercept: boolean;
|
|
23646
|
+
/**
|
|
23647
|
+
* The **`destination`** read-only property of the NavigateEvent interface returns a NavigationDestination object representing the destination being navigated to.
|
|
23648
|
+
*
|
|
23649
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/destination)
|
|
23650
|
+
*/
|
|
23651
|
+
readonly destination: NavigationDestination;
|
|
23652
|
+
/**
|
|
23653
|
+
* The **`downloadRequest`** read-only property of the NavigateEvent interface returns the filename of the file requested for download, in the case of a download navigation (e.g., an <a> or <area> element with a download attribute), or null otherwise.
|
|
23654
|
+
*
|
|
23655
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/downloadRequest)
|
|
23656
|
+
*/
|
|
23657
|
+
readonly downloadRequest: string | null;
|
|
23658
|
+
/**
|
|
23659
|
+
* The **`formData`** read-only property of the NavigateEvent interface returns the FormData object representing the submitted data in the case of a POST form submission, or null otherwise.
|
|
23660
|
+
*
|
|
23661
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/formData)
|
|
23662
|
+
*/
|
|
23663
|
+
readonly formData: FormData | null;
|
|
23664
|
+
/**
|
|
23665
|
+
* The **`hasUAVisualTransition`** read-only property of the NavigateEvent interface returns true if the user agent performed a visual transition for this navigation before dispatching this event, or false otherwise.
|
|
23666
|
+
*
|
|
23667
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hasUAVisualTransition)
|
|
23668
|
+
*/
|
|
23669
|
+
readonly hasUAVisualTransition: boolean;
|
|
23670
|
+
/**
|
|
23671
|
+
* The **`hashChange`** read-only property of the NavigateEvent interface returns true if the navigation is a fragment navigation (i.e., to a fragment identifier in the same document), or false otherwise.
|
|
23672
|
+
*
|
|
23673
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hashChange)
|
|
23674
|
+
*/
|
|
23675
|
+
readonly hashChange: boolean;
|
|
23676
|
+
/**
|
|
23677
|
+
* The **`info`** read-only property of the NavigateEvent interface returns the info data value passed by the initiating navigation operation (e.g., Navigation.back(), or Navigation.navigate()), or undefined if no info data was passed.
|
|
23678
|
+
*
|
|
23679
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/info)
|
|
23680
|
+
*/
|
|
23681
|
+
readonly info: any;
|
|
23682
|
+
/**
|
|
23683
|
+
* The **`navigationType`** read-only property of the NavigateEvent interface returns the type of the navigation — push, reload, replace, or traverse.
|
|
23684
|
+
*
|
|
23685
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/navigationType)
|
|
23686
|
+
*/
|
|
23687
|
+
readonly navigationType: NavigationType;
|
|
23688
|
+
/**
|
|
23689
|
+
* The **`signal`** read-only property of the NavigateEvent interface returns an AbortSignal, which will become aborted if the navigation is cancelled (e.g., by the user pressing the browser's "Stop" button, or another navigation starting and thus cancelling the ongoing one).
|
|
23690
|
+
*
|
|
23691
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/signal)
|
|
23692
|
+
*/
|
|
23693
|
+
readonly signal: AbortSignal;
|
|
23694
|
+
/**
|
|
23695
|
+
* The **`sourceElement`** read-only property of the NavigateEvent interface returns an Element object representing the initiating element, in cases where the navigation was initiated by an element.
|
|
23696
|
+
*
|
|
23697
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/sourceElement)
|
|
23698
|
+
*/
|
|
23699
|
+
readonly sourceElement: Element | null;
|
|
23700
|
+
/**
|
|
23701
|
+
* The **`userInitiated`** read-only property of the NavigateEvent interface returns true if the navigation was initiated by the user (e.g., by clicking a link, submitting a form, or pressing the browser's "Back"/"Forward" buttons), or false otherwise.
|
|
23702
|
+
*
|
|
23703
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/userInitiated)
|
|
23704
|
+
*/
|
|
23705
|
+
readonly userInitiated: boolean;
|
|
23706
|
+
/**
|
|
23707
|
+
* The **`intercept()`** method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.
|
|
23708
|
+
*
|
|
23709
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept)
|
|
23710
|
+
*/
|
|
23711
|
+
intercept(options?: NavigationInterceptOptions): void;
|
|
23712
|
+
/**
|
|
23713
|
+
* The **`scroll()`** method of the NavigateEvent interface can be called to manually trigger the browser-driven scrolling behavior that occurs in response to the navigation, if you want it to happen before the navigation handling has completed.
|
|
23714
|
+
*
|
|
23715
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/scroll)
|
|
23716
|
+
*/
|
|
23717
|
+
scroll(): void;
|
|
23718
|
+
}
|
|
23719
|
+
|
|
23720
|
+
declare var NavigateEvent: {
|
|
23721
|
+
prototype: NavigateEvent;
|
|
23722
|
+
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23723
|
+
};
|
|
23724
|
+
|
|
23725
|
+
/**
|
|
23726
|
+
* The **`Navigation`** interface of the Navigation API allows control over all navigation actions for the current window in one central place, including initiating navigations programmatically, examining navigation history entries, and managing navigations as they happen.
|
|
23727
|
+
*
|
|
23728
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation)
|
|
23729
|
+
*/
|
|
23730
|
+
interface Navigation extends EventTarget {
|
|
23731
|
+
/**
|
|
23732
|
+
* The **`activation`** read-only property of the Navigation interface returns a NavigationActivation object containing information about the most recent cross-document navigation, which "activated" this Document. The property will stay constant during same-document navigations.
|
|
23733
|
+
*
|
|
23734
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/activation)
|
|
23735
|
+
*/
|
|
23736
|
+
readonly activation: NavigationActivation | null;
|
|
23737
|
+
/**
|
|
23738
|
+
* The **`canGoBack`** read-only property of the Navigation interface returns true if it is possible to navigate backwards in the navigation history (i.e., the currentEntry is not the first one in the history entry list), and false if it is not.
|
|
23739
|
+
*
|
|
23740
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoBack)
|
|
23741
|
+
*/
|
|
23742
|
+
readonly canGoBack: boolean;
|
|
23743
|
+
/**
|
|
23744
|
+
* The **`canGoForward`** read-only property of the Navigation interface returns true if it is possible to navigate forwards in the navigation history (i.e., the currentEntry is not the last one in the history entry list), and false if it is not.
|
|
23745
|
+
*
|
|
23746
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoForward)
|
|
23747
|
+
*/
|
|
23748
|
+
readonly canGoForward: boolean;
|
|
23749
|
+
/**
|
|
23750
|
+
* The **`currentEntry`** read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
|
|
23751
|
+
*
|
|
23752
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23753
|
+
*/
|
|
23754
|
+
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23755
|
+
/**
|
|
23756
|
+
* The **`transition`** read-only property of the Navigation interface returns a NavigationTransition object representing the status of an in-progress navigation, which can be used to track it.
|
|
23757
|
+
*
|
|
23758
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/transition)
|
|
23759
|
+
*/
|
|
23760
|
+
readonly transition: NavigationTransition | null;
|
|
23761
|
+
/**
|
|
23762
|
+
* The **`back()`** method of the Navigation interface navigates backwards by one entry in the navigation history.
|
|
23763
|
+
*
|
|
23764
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/back)
|
|
23765
|
+
*/
|
|
23766
|
+
back(options?: NavigationOptions): NavigationResult;
|
|
23767
|
+
/**
|
|
23768
|
+
* The **`entries()`** method of the Navigation interface returns an array of NavigationHistoryEntry objects representing all existing history entries.
|
|
23769
|
+
*
|
|
23770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/entries)
|
|
23771
|
+
*/
|
|
23772
|
+
entries(): NavigationHistoryEntry[];
|
|
23773
|
+
/**
|
|
23774
|
+
* The **`forward()`** method of the Navigation interface navigates forwards by one entry in the navigation history.
|
|
23775
|
+
*
|
|
23776
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/forward)
|
|
23777
|
+
*/
|
|
23778
|
+
forward(options?: NavigationOptions): NavigationResult;
|
|
23779
|
+
/**
|
|
23780
|
+
* The **`navigate()`** method of the Navigation interface navigates to a specific URL, updating any provided state in the history entries list.
|
|
23781
|
+
*
|
|
23782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate)
|
|
23783
|
+
*/
|
|
23784
|
+
navigate(url: string | URL, options?: NavigationNavigateOptions): NavigationResult;
|
|
23785
|
+
/**
|
|
23786
|
+
* The **`reload()`** method of the Navigation interface reloads the current URL, updating any provided state in the history entries list.
|
|
23787
|
+
*
|
|
23788
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/reload)
|
|
23789
|
+
*/
|
|
23790
|
+
reload(options?: NavigationReloadOptions): NavigationResult;
|
|
23791
|
+
/**
|
|
23792
|
+
* The **`traverseTo()`** method of the Navigation interface navigates to the NavigationHistoryEntry identified by the given key.
|
|
23793
|
+
*
|
|
23794
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/traverseTo)
|
|
23795
|
+
*/
|
|
23796
|
+
traverseTo(key: string, options?: NavigationOptions): NavigationResult;
|
|
23797
|
+
/**
|
|
23798
|
+
* The **`updateCurrentEntry()`** method of the Navigation interface updates the state of the currentEntry; used in cases where the state change will be independent of a navigation or reload.
|
|
23799
|
+
*
|
|
23800
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23801
|
+
*/
|
|
23802
|
+
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23803
|
+
}
|
|
23804
|
+
|
|
23805
|
+
declare var Navigation: {
|
|
23806
|
+
prototype: Navigation;
|
|
23807
|
+
new(): Navigation;
|
|
23808
|
+
};
|
|
23809
|
+
|
|
23565
23810
|
/**
|
|
23566
23811
|
* The **`NavigationActivation`** interface of the Navigation API represents a recent cross-document navigation. It contains the navigation type and outgoing and inbound document history entries.
|
|
23567
23812
|
*
|
|
@@ -23593,6 +23838,80 @@ declare var NavigationActivation: {
|
|
|
23593
23838
|
new(): NavigationActivation;
|
|
23594
23839
|
};
|
|
23595
23840
|
|
|
23841
|
+
/**
|
|
23842
|
+
* The **`NavigationCurrentEntryChangeEvent`** interface of the Navigation API is the event object for the currententrychange event, which fires when the Navigation.currentEntry has changed.
|
|
23843
|
+
*
|
|
23844
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent)
|
|
23845
|
+
*/
|
|
23846
|
+
interface NavigationCurrentEntryChangeEvent extends Event {
|
|
23847
|
+
/**
|
|
23848
|
+
* The **`from`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
|
|
23849
|
+
*
|
|
23850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/from)
|
|
23851
|
+
*/
|
|
23852
|
+
readonly from: NavigationHistoryEntry;
|
|
23853
|
+
/**
|
|
23854
|
+
* The **`navigationType`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the type of the navigation that resulted in the change. The property may be null if the change occurs due to Navigation.updateCurrentEntry().
|
|
23855
|
+
*
|
|
23856
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/navigationType)
|
|
23857
|
+
*/
|
|
23858
|
+
readonly navigationType: NavigationType | null;
|
|
23859
|
+
}
|
|
23860
|
+
|
|
23861
|
+
declare var NavigationCurrentEntryChangeEvent: {
|
|
23862
|
+
prototype: NavigationCurrentEntryChangeEvent;
|
|
23863
|
+
new(type: string, eventInitDict: NavigationCurrentEntryChangeEventInit): NavigationCurrentEntryChangeEvent;
|
|
23864
|
+
};
|
|
23865
|
+
|
|
23866
|
+
/**
|
|
23867
|
+
* The **`NavigationDestination`** interface of the Navigation API represents the destination being navigated to in the current navigation.
|
|
23868
|
+
*
|
|
23869
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination)
|
|
23870
|
+
*/
|
|
23871
|
+
interface NavigationDestination {
|
|
23872
|
+
/**
|
|
23873
|
+
* The **`id`** read-only property of the NavigationDestination interface returns the id value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or an empty string otherwise.
|
|
23874
|
+
*
|
|
23875
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/id)
|
|
23876
|
+
*/
|
|
23877
|
+
readonly id: string;
|
|
23878
|
+
/**
|
|
23879
|
+
* The **`index`** read-only property of the NavigationDestination interface returns the index value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or -1 otherwise.
|
|
23880
|
+
*
|
|
23881
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/index)
|
|
23882
|
+
*/
|
|
23883
|
+
readonly index: number;
|
|
23884
|
+
/**
|
|
23885
|
+
* The **`key`** read-only property of the NavigationDestination interface returns the key value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or an empty string otherwise.
|
|
23886
|
+
*
|
|
23887
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/key)
|
|
23888
|
+
*/
|
|
23889
|
+
readonly key: string;
|
|
23890
|
+
/**
|
|
23891
|
+
* The **`sameDocument`** read-only property of the NavigationDestination interface returns true if the navigation is to the same document as the current Document value, or false otherwise.
|
|
23892
|
+
*
|
|
23893
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/sameDocument)
|
|
23894
|
+
*/
|
|
23895
|
+
readonly sameDocument: boolean;
|
|
23896
|
+
/**
|
|
23897
|
+
* The **`url`** read-only property of the NavigationDestination interface returns the URL being navigated to.
|
|
23898
|
+
*
|
|
23899
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/url)
|
|
23900
|
+
*/
|
|
23901
|
+
readonly url: string;
|
|
23902
|
+
/**
|
|
23903
|
+
* The **`getState()`** method of the NavigationDestination interface returns a clone of the developer-supplied state associated with the destination NavigationHistoryEntry, or navigation operation (e.g., navigate()) as appropriate.
|
|
23904
|
+
*
|
|
23905
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/getState)
|
|
23906
|
+
*/
|
|
23907
|
+
getState(): any;
|
|
23908
|
+
}
|
|
23909
|
+
|
|
23910
|
+
declare var NavigationDestination: {
|
|
23911
|
+
prototype: NavigationDestination;
|
|
23912
|
+
new(): NavigationDestination;
|
|
23913
|
+
};
|
|
23914
|
+
|
|
23596
23915
|
interface NavigationHistoryEntryEventMap {
|
|
23597
23916
|
"dispose": Event;
|
|
23598
23917
|
}
|
|
@@ -23652,6 +23971,25 @@ declare var NavigationHistoryEntry: {
|
|
|
23652
23971
|
new(): NavigationHistoryEntry;
|
|
23653
23972
|
};
|
|
23654
23973
|
|
|
23974
|
+
/**
|
|
23975
|
+
* The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
|
|
23976
|
+
*
|
|
23977
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
23978
|
+
*/
|
|
23979
|
+
interface NavigationPrecommitController {
|
|
23980
|
+
/**
|
|
23981
|
+
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
23982
|
+
*
|
|
23983
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/redirect)
|
|
23984
|
+
*/
|
|
23985
|
+
redirect(url: string | URL, options?: NavigationNavigateOptions): void;
|
|
23986
|
+
}
|
|
23987
|
+
|
|
23988
|
+
declare var NavigationPrecommitController: {
|
|
23989
|
+
prototype: NavigationPrecommitController;
|
|
23990
|
+
new(): NavigationPrecommitController;
|
|
23991
|
+
};
|
|
23992
|
+
|
|
23655
23993
|
/**
|
|
23656
23994
|
* The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
|
|
23657
23995
|
* Available only in secure contexts.
|
|
@@ -23690,6 +24028,38 @@ declare var NavigationPreloadManager: {
|
|
|
23690
24028
|
new(): NavigationPreloadManager;
|
|
23691
24029
|
};
|
|
23692
24030
|
|
|
24031
|
+
/**
|
|
24032
|
+
* The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage.
|
|
24033
|
+
*
|
|
24034
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
|
|
24035
|
+
*/
|
|
24036
|
+
interface NavigationTransition {
|
|
24037
|
+
readonly committed: Promise<void>;
|
|
24038
|
+
/**
|
|
24039
|
+
* The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
|
|
24040
|
+
*
|
|
24041
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)
|
|
24042
|
+
*/
|
|
24043
|
+
readonly finished: Promise<void>;
|
|
24044
|
+
/**
|
|
24045
|
+
* The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.
|
|
24046
|
+
*
|
|
24047
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)
|
|
24048
|
+
*/
|
|
24049
|
+
readonly from: NavigationHistoryEntry;
|
|
24050
|
+
/**
|
|
24051
|
+
* The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.
|
|
24052
|
+
*
|
|
24053
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
|
|
24054
|
+
*/
|
|
24055
|
+
readonly navigationType: NavigationType;
|
|
24056
|
+
}
|
|
24057
|
+
|
|
24058
|
+
declare var NavigationTransition: {
|
|
24059
|
+
prototype: NavigationTransition;
|
|
24060
|
+
new(): NavigationTransition;
|
|
24061
|
+
};
|
|
24062
|
+
|
|
23693
24063
|
/**
|
|
23694
24064
|
* The **`Navigator`** interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
|
|
23695
24065
|
*
|
|
@@ -24832,6 +25202,11 @@ declare var PageTransitionEvent: {
|
|
|
24832
25202
|
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
|
|
24833
25203
|
};
|
|
24834
25204
|
|
|
25205
|
+
interface PaintTimingMixin {
|
|
25206
|
+
readonly paintTime: DOMHighResTimeStamp;
|
|
25207
|
+
readonly presentationTime: DOMHighResTimeStamp | null;
|
|
25208
|
+
}
|
|
25209
|
+
|
|
24835
25210
|
/**
|
|
24836
25211
|
* The **`PannerNode`** interface defines an audio-processing object that represents the location, direction, and behavior of an audio source signal in a simulated physical space. This AudioNode uses right-hand Cartesian coordinates to describe the source's position as a vector and its orientation as a 3D directional cone.
|
|
24837
25212
|
*
|
|
@@ -25347,6 +25722,7 @@ interface Performance extends EventTarget {
|
|
|
25347
25722
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
25348
25723
|
*/
|
|
25349
25724
|
readonly eventCounts: EventCounts;
|
|
25725
|
+
readonly interactionCount: number;
|
|
25350
25726
|
/**
|
|
25351
25727
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
25352
25728
|
* @deprecated
|
|
@@ -25772,7 +26148,7 @@ declare var PerformanceObserverEntryList: {
|
|
|
25772
26148
|
*
|
|
25773
26149
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
25774
26150
|
*/
|
|
25775
|
-
interface PerformancePaintTiming extends PerformanceEntry {
|
|
26151
|
+
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
25776
26152
|
toJSON(): any;
|
|
25777
26153
|
}
|
|
25778
26154
|
|
|
@@ -28669,6 +29045,19 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28669
29045
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
|
|
28670
29046
|
*/
|
|
28671
29047
|
download: string;
|
|
29048
|
+
/**
|
|
29049
|
+
* The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource.
|
|
29050
|
+
*
|
|
29051
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang)
|
|
29052
|
+
*/
|
|
29053
|
+
hreflang: string;
|
|
29054
|
+
/**
|
|
29055
|
+
* The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking.
|
|
29056
|
+
*
|
|
29057
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/ping)
|
|
29058
|
+
*/
|
|
29059
|
+
ping: string;
|
|
29060
|
+
referrerPolicy: string;
|
|
28672
29061
|
/**
|
|
28673
29062
|
* The **`rel`** property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG <a> element.
|
|
28674
29063
|
*
|
|
@@ -28688,6 +29077,12 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28688
29077
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
|
|
28689
29078
|
*/
|
|
28690
29079
|
readonly target: SVGAnimatedString;
|
|
29080
|
+
/**
|
|
29081
|
+
* The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.
|
|
29082
|
+
*
|
|
29083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type)
|
|
29084
|
+
*/
|
|
29085
|
+
type: string;
|
|
28691
29086
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
28692
29087
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
28693
29088
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -39065,6 +39460,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
39065
39460
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
|
|
39066
39461
|
*/
|
|
39067
39462
|
name: string;
|
|
39463
|
+
/**
|
|
39464
|
+
* The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
|
|
39465
|
+
*
|
|
39466
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
|
|
39467
|
+
*/
|
|
39468
|
+
readonly navigation: Navigation;
|
|
39068
39469
|
/**
|
|
39069
39470
|
* The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
|
|
39070
39471
|
*
|
|
@@ -39465,7 +39866,7 @@ interface WindowEventHandlers {
|
|
|
39465
39866
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
39466
39867
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
39467
39868
|
/**
|
|
39468
|
-
* @deprecated
|
|
39869
|
+
* @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
|
|
39469
39870
|
*
|
|
39470
39871
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
39471
39872
|
*/
|
|
@@ -40752,6 +41153,14 @@ interface MutationCallback {
|
|
|
40752
41153
|
(mutations: MutationRecord[], observer: MutationObserver): void;
|
|
40753
41154
|
}
|
|
40754
41155
|
|
|
41156
|
+
interface NavigationInterceptHandler {
|
|
41157
|
+
(): void | PromiseLike<void>;
|
|
41158
|
+
}
|
|
41159
|
+
|
|
41160
|
+
interface NavigationPrecommitHandler {
|
|
41161
|
+
(controller: NavigationPrecommitController): void | PromiseLike<void>;
|
|
41162
|
+
}
|
|
41163
|
+
|
|
40755
41164
|
interface NotificationPermissionCallback {
|
|
40756
41165
|
(permission: NotificationPermission): void;
|
|
40757
41166
|
}
|
|
@@ -41233,6 +41642,12 @@ declare var menubar: BarProp;
|
|
|
41233
41642
|
*/
|
|
41234
41643
|
/** @deprecated */
|
|
41235
41644
|
declare const name: void;
|
|
41645
|
+
/**
|
|
41646
|
+
* The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
|
|
41647
|
+
*
|
|
41648
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
|
|
41649
|
+
*/
|
|
41650
|
+
declare var navigation: Navigation;
|
|
41236
41651
|
/**
|
|
41237
41652
|
* The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
|
|
41238
41653
|
*
|
|
@@ -41834,7 +42249,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
|
41834
42249
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
41835
42250
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
41836
42251
|
/**
|
|
41837
|
-
* @deprecated
|
|
42252
|
+
* @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
|
|
41838
42253
|
*
|
|
41839
42254
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
41840
42255
|
*/
|
|
@@ -42070,6 +42485,9 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
|
|
|
42070
42485
|
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
|
|
42071
42486
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
42072
42487
|
type MediaStreamTrackState = "ended" | "live";
|
|
42488
|
+
type NavigationFocusReset = "after-transition" | "manual";
|
|
42489
|
+
type NavigationHistoryBehavior = "auto" | "push" | "replace";
|
|
42490
|
+
type NavigationScrollBehavior = "after-transition" | "manual";
|
|
42073
42491
|
type NavigationTimingType = "back_forward" | "navigate" | "reload";
|
|
42074
42492
|
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
42075
42493
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|