@types/sharedworker 0.0.68 → 0.0.71
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.71 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.71.
|
package/index.d.ts
CHANGED
|
@@ -428,12 +428,12 @@ interface QueuingStrategyInit {
|
|
|
428
428
|
highWaterMark: number;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
interface
|
|
431
|
+
interface ReadableStreamReadDoneResult {
|
|
432
432
|
done: true;
|
|
433
433
|
value?: undefined;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
interface
|
|
436
|
+
interface ReadableStreamReadValueResult<T> {
|
|
437
437
|
done: false;
|
|
438
438
|
value: T;
|
|
439
439
|
}
|
|
@@ -665,6 +665,8 @@ interface AbortSignal extends EventTarget {
|
|
|
665
665
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
666
666
|
readonly aborted: boolean;
|
|
667
667
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
668
|
+
readonly reason: any;
|
|
669
|
+
throwIfAborted(): void;
|
|
668
670
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
669
671
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
670
672
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2111,7 +2113,6 @@ interface NavigatorID {
|
|
|
2111
2113
|
readonly appName: string;
|
|
2112
2114
|
/** @deprecated */
|
|
2113
2115
|
readonly appVersion: string;
|
|
2114
|
-
/** @deprecated */
|
|
2115
2116
|
readonly platform: string;
|
|
2116
2117
|
/** @deprecated */
|
|
2117
2118
|
readonly product: string;
|
|
@@ -2128,10 +2129,6 @@ interface NavigatorLocks {
|
|
|
2128
2129
|
readonly locks: LockManager;
|
|
2129
2130
|
}
|
|
2130
2131
|
|
|
2131
|
-
interface NavigatorNetworkInformation {
|
|
2132
|
-
readonly connection: NetworkInformation;
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
2132
|
interface NavigatorOnLine {
|
|
2136
2133
|
readonly onLine: boolean;
|
|
2137
2134
|
}
|
|
@@ -2141,15 +2138,6 @@ interface NavigatorStorage {
|
|
|
2141
2138
|
readonly storage: StorageManager;
|
|
2142
2139
|
}
|
|
2143
2140
|
|
|
2144
|
-
interface NetworkInformation extends EventTarget {
|
|
2145
|
-
readonly type: ConnectionType;
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
declare var NetworkInformation: {
|
|
2149
|
-
prototype: NetworkInformation;
|
|
2150
|
-
new(): NetworkInformation;
|
|
2151
|
-
};
|
|
2152
|
-
|
|
2153
2141
|
interface NotificationEventMap {
|
|
2154
2142
|
"click": Event;
|
|
2155
2143
|
"close": Event;
|
|
@@ -2491,7 +2479,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2491
2479
|
};
|
|
2492
2480
|
|
|
2493
2481
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2494
|
-
read(): Promise<
|
|
2482
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2495
2483
|
releaseLock(): void;
|
|
2496
2484
|
}
|
|
2497
2485
|
|
|
@@ -2950,13 +2938,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
2950
2938
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
2951
2939
|
}
|
|
2952
2940
|
|
|
2953
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
2954
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
2955
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
2956
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
2957
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
2941
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
2961
2942
|
interface WEBGL_compressed_texture_s3tc {
|
|
2962
2943
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -4447,7 +4428,6 @@ interface WebGLRenderingContextBase {
|
|
|
4447
4428
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4448
4429
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4449
4430
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4450
|
-
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
4451
4431
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4452
4432
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4453
4433
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -5079,7 +5059,7 @@ declare var WorkerLocation: {
|
|
|
5079
5059
|
};
|
|
5080
5060
|
|
|
5081
5061
|
/** 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. */
|
|
5082
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5062
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5083
5063
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5084
5064
|
}
|
|
5085
5065
|
|
|
@@ -5566,7 +5546,7 @@ type NamedCurve = string;
|
|
|
5566
5546
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5567
5547
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5568
5548
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5569
|
-
type
|
|
5549
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
5570
5550
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5571
5551
|
type RequestInfo = Request | string;
|
|
5572
5552
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -5579,7 +5559,6 @@ type BinaryType = "arraybuffer" | "blob";
|
|
|
5579
5559
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5580
5560
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5581
5561
|
type ColorSpaceConversion = "default" | "none";
|
|
5582
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5583
5562
|
type EndingType = "native" | "transparent";
|
|
5584
5563
|
type FileSystemHandleKind = "directory" | "file";
|
|
5585
5564
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|