@types/serviceworker 0.0.39 → 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 +7 -28
- 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
|
}
|
|
@@ -693,6 +693,8 @@ interface AbortSignal extends EventTarget {
|
|
|
693
693
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
694
694
|
readonly aborted: boolean;
|
|
695
695
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
696
|
+
readonly reason: any;
|
|
697
|
+
throwIfAborted(): void;
|
|
696
698
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
697
699
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
698
700
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2192,7 +2194,6 @@ interface NavigatorID {
|
|
|
2192
2194
|
readonly appName: string;
|
|
2193
2195
|
/** @deprecated */
|
|
2194
2196
|
readonly appVersion: string;
|
|
2195
|
-
/** @deprecated */
|
|
2196
2197
|
readonly platform: string;
|
|
2197
2198
|
/** @deprecated */
|
|
2198
2199
|
readonly product: string;
|
|
@@ -2209,10 +2210,6 @@ interface NavigatorLocks {
|
|
|
2209
2210
|
readonly locks: LockManager;
|
|
2210
2211
|
}
|
|
2211
2212
|
|
|
2212
|
-
interface NavigatorNetworkInformation {
|
|
2213
|
-
readonly connection: NetworkInformation;
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
2213
|
interface NavigatorOnLine {
|
|
2217
2214
|
readonly onLine: boolean;
|
|
2218
2215
|
}
|
|
@@ -2222,15 +2219,6 @@ interface NavigatorStorage {
|
|
|
2222
2219
|
readonly storage: StorageManager;
|
|
2223
2220
|
}
|
|
2224
2221
|
|
|
2225
|
-
interface NetworkInformation extends EventTarget {
|
|
2226
|
-
readonly type: ConnectionType;
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
declare var NetworkInformation: {
|
|
2230
|
-
prototype: NetworkInformation;
|
|
2231
|
-
new(): NetworkInformation;
|
|
2232
|
-
};
|
|
2233
|
-
|
|
2234
2222
|
interface NotificationEventMap {
|
|
2235
2223
|
"click": Event;
|
|
2236
2224
|
"close": Event;
|
|
@@ -2612,7 +2600,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2612
2600
|
};
|
|
2613
2601
|
|
|
2614
2602
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2615
|
-
read(): Promise<
|
|
2603
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2616
2604
|
releaseLock(): void;
|
|
2617
2605
|
}
|
|
2618
2606
|
|
|
@@ -3083,13 +3071,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
3083
3071
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
3084
3072
|
}
|
|
3085
3073
|
|
|
3086
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
3087
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
3088
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
3089
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
3090
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
3074
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
3094
3075
|
interface WEBGL_compressed_texture_s3tc {
|
|
3095
3076
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -4580,7 +4561,6 @@ interface WebGLRenderingContextBase {
|
|
|
4580
4561
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4581
4562
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4582
4563
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4583
|
-
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
4584
4564
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4585
4565
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4586
4566
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -5200,7 +5180,7 @@ declare var WorkerLocation: {
|
|
|
5200
5180
|
};
|
|
5201
5181
|
|
|
5202
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. */
|
|
5203
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5183
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5204
5184
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5205
5185
|
}
|
|
5206
5186
|
|
|
@@ -5551,7 +5531,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
5551
5531
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5552
5532
|
type PushMessageDataInit = BufferSource | string;
|
|
5553
5533
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5554
|
-
type
|
|
5534
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
5555
5535
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5556
5536
|
type RequestInfo = Request | string;
|
|
5557
5537
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -5564,7 +5544,6 @@ type BinaryType = "arraybuffer" | "blob";
|
|
|
5564
5544
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5565
5545
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5566
5546
|
type ColorSpaceConversion = "default" | "none";
|
|
5567
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5568
5547
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
5569
5548
|
type EndingType = "native" | "transparent";
|
|
5570
5549
|
type FileSystemHandleKind = "directory" | "file";
|