@types/web 0.0.212 → 0.0.214
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 +7 -4
- package/package.json +1 -1
- package/ts5.5/index.d.ts +7 -4
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.214 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.214.
|
package/index.d.ts
CHANGED
|
@@ -15699,8 +15699,8 @@ interface LockManager {
|
|
|
15699
15699
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
|
|
15700
15700
|
query(): Promise<LockManagerSnapshot>;
|
|
15701
15701
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
|
|
15702
|
-
request(name: string, callback: LockGrantedCallback): Promise<
|
|
15703
|
-
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<
|
|
15702
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15703
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15704
15704
|
}
|
|
15705
15705
|
|
|
15706
15706
|
declare var LockManager: {
|
|
@@ -21725,6 +21725,9 @@ declare var SVGNumberList: {
|
|
|
21725
21725
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
|
|
21726
21726
|
*/
|
|
21727
21727
|
interface SVGPathElement extends SVGGeometryElement {
|
|
21728
|
+
readonly pathLength: SVGAnimatedNumber;
|
|
21729
|
+
getPointAtLength(distance: number): DOMPoint;
|
|
21730
|
+
getTotalLength(): number;
|
|
21728
21731
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
21729
21732
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
21730
21733
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -28444,8 +28447,8 @@ interface IntersectionObserverCallback {
|
|
|
28444
28447
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
28445
28448
|
}
|
|
28446
28449
|
|
|
28447
|
-
interface LockGrantedCallback {
|
|
28448
|
-
(lock: Lock | null):
|
|
28450
|
+
interface LockGrantedCallback<T> {
|
|
28451
|
+
(lock: Lock | null): T;
|
|
28449
28452
|
}
|
|
28450
28453
|
|
|
28451
28454
|
interface MediaSessionActionHandler {
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -15679,8 +15679,8 @@ interface LockManager {
|
|
|
15679
15679
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
|
|
15680
15680
|
query(): Promise<LockManagerSnapshot>;
|
|
15681
15681
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
|
|
15682
|
-
request(name: string, callback: LockGrantedCallback): Promise<
|
|
15683
|
-
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<
|
|
15682
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15683
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15684
15684
|
}
|
|
15685
15685
|
|
|
15686
15686
|
declare var LockManager: {
|
|
@@ -21704,6 +21704,9 @@ declare var SVGNumberList: {
|
|
|
21704
21704
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
|
|
21705
21705
|
*/
|
|
21706
21706
|
interface SVGPathElement extends SVGGeometryElement {
|
|
21707
|
+
readonly pathLength: SVGAnimatedNumber;
|
|
21708
|
+
getPointAtLength(distance: number): DOMPoint;
|
|
21709
|
+
getTotalLength(): number;
|
|
21707
21710
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
21708
21711
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
21709
21712
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -28422,8 +28425,8 @@ interface IntersectionObserverCallback {
|
|
|
28422
28425
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
28423
28426
|
}
|
|
28424
28427
|
|
|
28425
|
-
interface LockGrantedCallback {
|
|
28426
|
-
(lock: Lock | null):
|
|
28428
|
+
interface LockGrantedCallback<T> {
|
|
28429
|
+
(lock: Lock | null): T;
|
|
28427
28430
|
}
|
|
28428
28431
|
|
|
28429
28432
|
interface MediaSessionActionHandler {
|