@types/web 0.0.313 → 0.0.314
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 +25 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +25 -2
- package/ts5.6/index.d.ts +25 -2
- package/ts5.9/index.d.ts +25 -2
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.314 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.314.
|
package/index.d.ts
CHANGED
|
@@ -23818,6 +23818,13 @@ declare var NavigateEvent: {
|
|
|
23818
23818
|
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23819
23819
|
};
|
|
23820
23820
|
|
|
23821
|
+
interface NavigationEventMap {
|
|
23822
|
+
"currententrychange": NavigationCurrentEntryChangeEvent;
|
|
23823
|
+
"navigate": NavigateEvent;
|
|
23824
|
+
"navigateerror": ErrorEvent;
|
|
23825
|
+
"navigatesuccess": Event;
|
|
23826
|
+
}
|
|
23827
|
+
|
|
23821
23828
|
/**
|
|
23822
23829
|
* 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.
|
|
23823
23830
|
*
|
|
@@ -23848,6 +23855,14 @@ interface Navigation extends EventTarget {
|
|
|
23848
23855
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23849
23856
|
*/
|
|
23850
23857
|
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23858
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currententrychange_event) */
|
|
23859
|
+
oncurrententrychange: ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null;
|
|
23860
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate_event) */
|
|
23861
|
+
onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;
|
|
23862
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigateerror_event) */
|
|
23863
|
+
onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;
|
|
23864
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigatesuccess_event) */
|
|
23865
|
+
onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;
|
|
23851
23866
|
/**
|
|
23852
23867
|
* 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.
|
|
23853
23868
|
*
|
|
@@ -23896,6 +23911,10 @@ interface Navigation extends EventTarget {
|
|
|
23896
23911
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23897
23912
|
*/
|
|
23898
23913
|
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23914
|
+
addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
23915
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
23916
|
+
removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
23917
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
23899
23918
|
}
|
|
23900
23919
|
|
|
23901
23920
|
declare var Navigation: {
|
|
@@ -26245,7 +26264,11 @@ declare var PerformanceObserverEntryList: {
|
|
|
26245
26264
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
26246
26265
|
*/
|
|
26247
26266
|
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
26248
|
-
/**
|
|
26267
|
+
/**
|
|
26268
|
+
* The **`toJSON()`** method of the PerformancePaintTiming interface is a serializer; it returns a JSON representation of the PerformancePaintTiming object.
|
|
26269
|
+
*
|
|
26270
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON)
|
|
26271
|
+
*/
|
|
26249
26272
|
toJSON(): any;
|
|
26250
26273
|
}
|
|
26251
26274
|
|
|
@@ -33444,7 +33467,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
33444
33467
|
*/
|
|
33445
33468
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
33446
33469
|
/**
|
|
33447
|
-
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33470
|
+
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33448
33471
|
*
|
|
33449
33472
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
|
|
33450
33473
|
*/
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -23794,6 +23794,13 @@ declare var NavigateEvent: {
|
|
|
23794
23794
|
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23795
23795
|
};
|
|
23796
23796
|
|
|
23797
|
+
interface NavigationEventMap {
|
|
23798
|
+
"currententrychange": NavigationCurrentEntryChangeEvent;
|
|
23799
|
+
"navigate": NavigateEvent;
|
|
23800
|
+
"navigateerror": ErrorEvent;
|
|
23801
|
+
"navigatesuccess": Event;
|
|
23802
|
+
}
|
|
23803
|
+
|
|
23797
23804
|
/**
|
|
23798
23805
|
* 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.
|
|
23799
23806
|
*
|
|
@@ -23824,6 +23831,14 @@ interface Navigation extends EventTarget {
|
|
|
23824
23831
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23825
23832
|
*/
|
|
23826
23833
|
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23834
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currententrychange_event) */
|
|
23835
|
+
oncurrententrychange: ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null;
|
|
23836
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate_event) */
|
|
23837
|
+
onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;
|
|
23838
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigateerror_event) */
|
|
23839
|
+
onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;
|
|
23840
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigatesuccess_event) */
|
|
23841
|
+
onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;
|
|
23827
23842
|
/**
|
|
23828
23843
|
* 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.
|
|
23829
23844
|
*
|
|
@@ -23872,6 +23887,10 @@ interface Navigation extends EventTarget {
|
|
|
23872
23887
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23873
23888
|
*/
|
|
23874
23889
|
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23890
|
+
addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
23891
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
23892
|
+
removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
23893
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
23875
23894
|
}
|
|
23876
23895
|
|
|
23877
23896
|
declare var Navigation: {
|
|
@@ -26221,7 +26240,11 @@ declare var PerformanceObserverEntryList: {
|
|
|
26221
26240
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
26222
26241
|
*/
|
|
26223
26242
|
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
26224
|
-
/**
|
|
26243
|
+
/**
|
|
26244
|
+
* The **`toJSON()`** method of the PerformancePaintTiming interface is a serializer; it returns a JSON representation of the PerformancePaintTiming object.
|
|
26245
|
+
*
|
|
26246
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON)
|
|
26247
|
+
*/
|
|
26225
26248
|
toJSON(): any;
|
|
26226
26249
|
}
|
|
26227
26250
|
|
|
@@ -33419,7 +33442,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
33419
33442
|
*/
|
|
33420
33443
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
33421
33444
|
/**
|
|
33422
|
-
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33445
|
+
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33423
33446
|
*
|
|
33424
33447
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
|
|
33425
33448
|
*/
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -23815,6 +23815,13 @@ declare var NavigateEvent: {
|
|
|
23815
23815
|
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23816
23816
|
};
|
|
23817
23817
|
|
|
23818
|
+
interface NavigationEventMap {
|
|
23819
|
+
"currententrychange": NavigationCurrentEntryChangeEvent;
|
|
23820
|
+
"navigate": NavigateEvent;
|
|
23821
|
+
"navigateerror": ErrorEvent;
|
|
23822
|
+
"navigatesuccess": Event;
|
|
23823
|
+
}
|
|
23824
|
+
|
|
23818
23825
|
/**
|
|
23819
23826
|
* 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.
|
|
23820
23827
|
*
|
|
@@ -23845,6 +23852,14 @@ interface Navigation extends EventTarget {
|
|
|
23845
23852
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23846
23853
|
*/
|
|
23847
23854
|
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23855
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currententrychange_event) */
|
|
23856
|
+
oncurrententrychange: ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null;
|
|
23857
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate_event) */
|
|
23858
|
+
onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;
|
|
23859
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigateerror_event) */
|
|
23860
|
+
onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;
|
|
23861
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigatesuccess_event) */
|
|
23862
|
+
onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;
|
|
23848
23863
|
/**
|
|
23849
23864
|
* 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.
|
|
23850
23865
|
*
|
|
@@ -23893,6 +23908,10 @@ interface Navigation extends EventTarget {
|
|
|
23893
23908
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23894
23909
|
*/
|
|
23895
23910
|
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23911
|
+
addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
23912
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
23913
|
+
removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
23914
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
23896
23915
|
}
|
|
23897
23916
|
|
|
23898
23917
|
declare var Navigation: {
|
|
@@ -26242,7 +26261,11 @@ declare var PerformanceObserverEntryList: {
|
|
|
26242
26261
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
26243
26262
|
*/
|
|
26244
26263
|
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
26245
|
-
/**
|
|
26264
|
+
/**
|
|
26265
|
+
* The **`toJSON()`** method of the PerformancePaintTiming interface is a serializer; it returns a JSON representation of the PerformancePaintTiming object.
|
|
26266
|
+
*
|
|
26267
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON)
|
|
26268
|
+
*/
|
|
26246
26269
|
toJSON(): any;
|
|
26247
26270
|
}
|
|
26248
26271
|
|
|
@@ -33441,7 +33464,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
33441
33464
|
*/
|
|
33442
33465
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
33443
33466
|
/**
|
|
33444
|
-
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33467
|
+
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33445
33468
|
*
|
|
33446
33469
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
|
|
33447
33470
|
*/
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -23815,6 +23815,13 @@ declare var NavigateEvent: {
|
|
|
23815
23815
|
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23816
23816
|
};
|
|
23817
23817
|
|
|
23818
|
+
interface NavigationEventMap {
|
|
23819
|
+
"currententrychange": NavigationCurrentEntryChangeEvent;
|
|
23820
|
+
"navigate": NavigateEvent;
|
|
23821
|
+
"navigateerror": ErrorEvent;
|
|
23822
|
+
"navigatesuccess": Event;
|
|
23823
|
+
}
|
|
23824
|
+
|
|
23818
23825
|
/**
|
|
23819
23826
|
* 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.
|
|
23820
23827
|
*
|
|
@@ -23845,6 +23852,14 @@ interface Navigation extends EventTarget {
|
|
|
23845
23852
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23846
23853
|
*/
|
|
23847
23854
|
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23855
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currententrychange_event) */
|
|
23856
|
+
oncurrententrychange: ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null;
|
|
23857
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate_event) */
|
|
23858
|
+
onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;
|
|
23859
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigateerror_event) */
|
|
23860
|
+
onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;
|
|
23861
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigatesuccess_event) */
|
|
23862
|
+
onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;
|
|
23848
23863
|
/**
|
|
23849
23864
|
* 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.
|
|
23850
23865
|
*
|
|
@@ -23893,6 +23908,10 @@ interface Navigation extends EventTarget {
|
|
|
23893
23908
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23894
23909
|
*/
|
|
23895
23910
|
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23911
|
+
addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
23912
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
23913
|
+
removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
23914
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
23896
23915
|
}
|
|
23897
23916
|
|
|
23898
23917
|
declare var Navigation: {
|
|
@@ -26242,7 +26261,11 @@ declare var PerformanceObserverEntryList: {
|
|
|
26242
26261
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
26243
26262
|
*/
|
|
26244
26263
|
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
26245
|
-
/**
|
|
26264
|
+
/**
|
|
26265
|
+
* The **`toJSON()`** method of the PerformancePaintTiming interface is a serializer; it returns a JSON representation of the PerformancePaintTiming object.
|
|
26266
|
+
*
|
|
26267
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON)
|
|
26268
|
+
*/
|
|
26246
26269
|
toJSON(): any;
|
|
26247
26270
|
}
|
|
26248
26271
|
|
|
@@ -33441,7 +33464,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
33441
33464
|
*/
|
|
33442
33465
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
33443
33466
|
/**
|
|
33444
|
-
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33467
|
+
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
33445
33468
|
*
|
|
33446
33469
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
|
|
33447
33470
|
*/
|