@types/serviceworker 0.0.41 → 0.0.42
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 +5 -20
- package/package.json +1 -1
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.42 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.42.
|
package/index.d.ts
CHANGED
|
@@ -462,12 +462,12 @@ interface QueuingStrategyInit {
|
|
|
462
462
|
highWaterMark: number;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
interface
|
|
465
|
+
interface ReadableStreamReadDoneResult {
|
|
466
466
|
done: true;
|
|
467
467
|
value?: undefined;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
-
interface
|
|
470
|
+
interface ReadableStreamReadValueResult<T> {
|
|
471
471
|
done: false;
|
|
472
472
|
value: T;
|
|
473
473
|
}
|
|
@@ -2194,7 +2194,6 @@ interface NavigatorID {
|
|
|
2194
2194
|
readonly appName: string;
|
|
2195
2195
|
/** @deprecated */
|
|
2196
2196
|
readonly appVersion: string;
|
|
2197
|
-
/** @deprecated */
|
|
2198
2197
|
readonly platform: string;
|
|
2199
2198
|
/** @deprecated */
|
|
2200
2199
|
readonly product: string;
|
|
@@ -2211,10 +2210,6 @@ interface NavigatorLocks {
|
|
|
2211
2210
|
readonly locks: LockManager;
|
|
2212
2211
|
}
|
|
2213
2212
|
|
|
2214
|
-
interface NavigatorNetworkInformation {
|
|
2215
|
-
readonly connection: NetworkInformation;
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
2213
|
interface NavigatorOnLine {
|
|
2219
2214
|
readonly onLine: boolean;
|
|
2220
2215
|
}
|
|
@@ -2224,15 +2219,6 @@ interface NavigatorStorage {
|
|
|
2224
2219
|
readonly storage: StorageManager;
|
|
2225
2220
|
}
|
|
2226
2221
|
|
|
2227
|
-
interface NetworkInformation extends EventTarget {
|
|
2228
|
-
readonly type: ConnectionType;
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
declare var NetworkInformation: {
|
|
2232
|
-
prototype: NetworkInformation;
|
|
2233
|
-
new(): NetworkInformation;
|
|
2234
|
-
};
|
|
2235
|
-
|
|
2236
2222
|
interface NotificationEventMap {
|
|
2237
2223
|
"click": Event;
|
|
2238
2224
|
"close": Event;
|
|
@@ -2614,7 +2600,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2614
2600
|
};
|
|
2615
2601
|
|
|
2616
2602
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2617
|
-
read(): Promise<
|
|
2603
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2618
2604
|
releaseLock(): void;
|
|
2619
2605
|
}
|
|
2620
2606
|
|
|
@@ -5194,7 +5180,7 @@ declare var WorkerLocation: {
|
|
|
5194
5180
|
};
|
|
5195
5181
|
|
|
5196
5182
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
5197
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5183
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5198
5184
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5199
5185
|
}
|
|
5200
5186
|
|
|
@@ -5545,7 +5531,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
5545
5531
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5546
5532
|
type PushMessageDataInit = BufferSource | string;
|
|
5547
5533
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5548
|
-
type
|
|
5534
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
5549
5535
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5550
5536
|
type RequestInfo = Request | string;
|
|
5551
5537
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -5558,7 +5544,6 @@ type BinaryType = "arraybuffer" | "blob";
|
|
|
5558
5544
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5559
5545
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5560
5546
|
type ColorSpaceConversion = "default" | "none";
|
|
5561
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5562
5547
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
5563
5548
|
type EndingType = "native" | "transparent";
|
|
5564
5549
|
type FileSystemHandleKind = "directory" | "file";
|