@types/serviceworker 0.0.91 → 0.0.93
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 +1 -2
- package/iterable.d.ts +46 -30
- package/package.json +8 -1
- package/ts5.5/index.d.ts +8674 -0
- package/ts5.5/iterable.d.ts +254 -0
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.93 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.93.
|
package/index.d.ts
CHANGED
|
@@ -2714,7 +2714,7 @@ interface FontFace {
|
|
|
2714
2714
|
|
|
2715
2715
|
declare var FontFace: {
|
|
2716
2716
|
prototype: FontFace;
|
|
2717
|
-
new(family: string, source: string |
|
|
2717
|
+
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
|
|
2718
2718
|
};
|
|
2719
2719
|
|
|
2720
2720
|
interface FontFaceSetEventMap {
|
|
@@ -8559,7 +8559,6 @@ declare function removeEventListener(type: string, listener: EventListenerOrEven
|
|
|
8559
8559
|
type AlgorithmIdentifier = Algorithm | string;
|
|
8560
8560
|
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
|
8561
8561
|
type BigInteger = Uint8Array;
|
|
8562
|
-
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
8563
8562
|
type BlobPart = BufferSource | Blob | string;
|
|
8564
8563
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
8565
8564
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
package/iterable.d.ts
CHANGED
|
@@ -8,24 +8,24 @@ interface AbortSignal {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
interface CSSNumericArray {
|
|
11
|
-
[Symbol.iterator]():
|
|
12
|
-
entries():
|
|
13
|
-
keys():
|
|
14
|
-
values():
|
|
11
|
+
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
|
12
|
+
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
|
13
|
+
keys(): ArrayIterator<number>;
|
|
14
|
+
values(): ArrayIterator<CSSNumericValue>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface CSSTransformValue {
|
|
18
|
-
[Symbol.iterator]():
|
|
19
|
-
entries():
|
|
20
|
-
keys():
|
|
21
|
-
values():
|
|
18
|
+
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
|
|
19
|
+
entries(): ArrayIterator<[number, CSSTransformComponent]>;
|
|
20
|
+
keys(): ArrayIterator<number>;
|
|
21
|
+
values(): ArrayIterator<CSSTransformComponent>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
interface CSSUnparsedValue {
|
|
25
|
-
[Symbol.iterator]():
|
|
26
|
-
entries():
|
|
27
|
-
keys():
|
|
28
|
-
values():
|
|
25
|
+
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
|
|
26
|
+
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
|
|
27
|
+
keys(): ArrayIterator<number>;
|
|
28
|
+
values(): ArrayIterator<CSSUnparsedSegment>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface Cache {
|
|
@@ -44,34 +44,42 @@ interface CanvasPathDrawingStyles {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
interface DOMStringList {
|
|
47
|
-
[Symbol.iterator]():
|
|
47
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
interface FileList {
|
|
51
|
-
[Symbol.iterator]():
|
|
51
|
+
[Symbol.iterator](): ArrayIterator<File>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
interface FontFaceSet extends Set<FontFace> {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
58
|
+
[Symbol.iterator](): FormDataIterator<T>;
|
|
59
|
+
}
|
|
60
|
+
|
|
57
61
|
interface FormData {
|
|
58
|
-
[Symbol.iterator]():
|
|
62
|
+
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
|
|
59
63
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
60
|
-
entries():
|
|
64
|
+
entries(): FormDataIterator<[string, FormDataEntryValue]>;
|
|
61
65
|
/** Returns a list of keys in the list. */
|
|
62
|
-
keys():
|
|
66
|
+
keys(): FormDataIterator<string>;
|
|
63
67
|
/** Returns a list of values in the list. */
|
|
64
|
-
values():
|
|
68
|
+
values(): FormDataIterator<FormDataEntryValue>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
72
|
+
[Symbol.iterator](): HeadersIterator<T>;
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
interface Headers {
|
|
68
|
-
[Symbol.iterator]():
|
|
76
|
+
[Symbol.iterator](): HeadersIterator<[string, string]>;
|
|
69
77
|
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
70
|
-
entries():
|
|
78
|
+
entries(): HeadersIterator<[string, string]>;
|
|
71
79
|
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
|
|
72
|
-
keys():
|
|
80
|
+
keys(): HeadersIterator<string>;
|
|
73
81
|
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
|
|
74
|
-
values():
|
|
82
|
+
values(): HeadersIterator<string>;
|
|
75
83
|
}
|
|
76
84
|
|
|
77
85
|
interface IDBDatabase {
|
|
@@ -99,11 +107,15 @@ interface MessageEvent<T = any> {
|
|
|
99
107
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
100
108
|
}
|
|
101
109
|
|
|
110
|
+
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
111
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
|
|
112
|
+
}
|
|
113
|
+
|
|
102
114
|
interface StylePropertyMapReadOnly {
|
|
103
|
-
[Symbol.iterator]():
|
|
104
|
-
entries():
|
|
105
|
-
keys():
|
|
106
|
-
values():
|
|
115
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
116
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
117
|
+
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
118
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
interface SubtleCrypto {
|
|
@@ -121,14 +133,18 @@ interface SubtleCrypto {
|
|
|
121
133
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
122
134
|
}
|
|
123
135
|
|
|
136
|
+
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
137
|
+
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
138
|
+
}
|
|
139
|
+
|
|
124
140
|
interface URLSearchParams {
|
|
125
|
-
[Symbol.iterator]():
|
|
141
|
+
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
|
126
142
|
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
127
|
-
entries():
|
|
143
|
+
entries(): URLSearchParamsIterator<[string, string]>;
|
|
128
144
|
/** Returns a list of keys in the search params. */
|
|
129
|
-
keys():
|
|
145
|
+
keys(): URLSearchParamsIterator<string>;
|
|
130
146
|
/** Returns a list of values in the search params. */
|
|
131
|
-
values():
|
|
147
|
+
values(): URLSearchParamsIterator<string>;
|
|
132
148
|
}
|
|
133
149
|
|
|
134
150
|
interface WEBGL_draw_buffers {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/serviceworker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"description": "Types for the global scope of Service Workers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"contributors": [],
|
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/microsoft/TypeScript-DOM-Lib-Generator.git"
|
|
12
12
|
},
|
|
13
|
+
"typesVersions": {
|
|
14
|
+
"<=5.5": {
|
|
15
|
+
"*": [
|
|
16
|
+
"ts5.5/*"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
13
20
|
"scripts": {},
|
|
14
21
|
"dependencies": {}
|
|
15
22
|
}
|