@types/webworker 0.0.34 → 0.0.36
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 -3
- package/package.json +1 -1
- package/ts5.5/index.d.ts +7 -3
- package/ts5.6/index.d.ts +7 -3
- package/ts5.9/index.d.ts +7 -3
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.36 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.36.
|
package/index.d.ts
CHANGED
|
@@ -678,6 +678,10 @@ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
|
|
|
678
678
|
width?: number;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
+
interface ReadableStreamBYOBReaderReadOptions {
|
|
682
|
+
min?: number;
|
|
683
|
+
}
|
|
684
|
+
|
|
681
685
|
interface ReadableStreamGetReaderOptions {
|
|
682
686
|
/**
|
|
683
687
|
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
@@ -7593,7 +7597,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7593
7597
|
*
|
|
7594
7598
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7595
7599
|
*/
|
|
7596
|
-
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
7600
|
+
read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7597
7601
|
/**
|
|
7598
7602
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7599
7603
|
*
|
|
@@ -8139,7 +8143,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
8139
8143
|
"fetch": FetchEvent;
|
|
8140
8144
|
"install": ExtendableEvent;
|
|
8141
8145
|
"message": ExtendableMessageEvent;
|
|
8142
|
-
"messageerror":
|
|
8146
|
+
"messageerror": ExtendableMessageEvent;
|
|
8143
8147
|
"notificationclick": NotificationEvent;
|
|
8144
8148
|
"notificationclose": NotificationEvent;
|
|
8145
8149
|
"push": PushEvent;
|
|
@@ -8176,7 +8180,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
8176
8180
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
|
|
8177
8181
|
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8178
8182
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
|
|
8179
|
-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev:
|
|
8183
|
+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8180
8184
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
|
|
8181
8185
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
8182
8186
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -675,6 +675,10 @@ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
|
|
|
675
675
|
width?: number;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
+
interface ReadableStreamBYOBReaderReadOptions {
|
|
679
|
+
min?: number;
|
|
680
|
+
}
|
|
681
|
+
|
|
678
682
|
interface ReadableStreamGetReaderOptions {
|
|
679
683
|
/**
|
|
680
684
|
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
@@ -7590,7 +7594,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7590
7594
|
*
|
|
7591
7595
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7592
7596
|
*/
|
|
7593
|
-
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
7597
|
+
read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7594
7598
|
/**
|
|
7595
7599
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7596
7600
|
*
|
|
@@ -8136,7 +8140,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
8136
8140
|
"fetch": FetchEvent;
|
|
8137
8141
|
"install": ExtendableEvent;
|
|
8138
8142
|
"message": ExtendableMessageEvent;
|
|
8139
|
-
"messageerror":
|
|
8143
|
+
"messageerror": ExtendableMessageEvent;
|
|
8140
8144
|
"notificationclick": NotificationEvent;
|
|
8141
8145
|
"notificationclose": NotificationEvent;
|
|
8142
8146
|
"push": PushEvent;
|
|
@@ -8173,7 +8177,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
8173
8177
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
|
|
8174
8178
|
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8175
8179
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
|
|
8176
|
-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev:
|
|
8180
|
+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8177
8181
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
|
|
8178
8182
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
8179
8183
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -675,6 +675,10 @@ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
|
|
|
675
675
|
width?: number;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
+
interface ReadableStreamBYOBReaderReadOptions {
|
|
679
|
+
min?: number;
|
|
680
|
+
}
|
|
681
|
+
|
|
678
682
|
interface ReadableStreamGetReaderOptions {
|
|
679
683
|
/**
|
|
680
684
|
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
@@ -7590,7 +7594,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7590
7594
|
*
|
|
7591
7595
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7592
7596
|
*/
|
|
7593
|
-
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
7597
|
+
read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7594
7598
|
/**
|
|
7595
7599
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7596
7600
|
*
|
|
@@ -8136,7 +8140,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
8136
8140
|
"fetch": FetchEvent;
|
|
8137
8141
|
"install": ExtendableEvent;
|
|
8138
8142
|
"message": ExtendableMessageEvent;
|
|
8139
|
-
"messageerror":
|
|
8143
|
+
"messageerror": ExtendableMessageEvent;
|
|
8140
8144
|
"notificationclick": NotificationEvent;
|
|
8141
8145
|
"notificationclose": NotificationEvent;
|
|
8142
8146
|
"push": PushEvent;
|
|
@@ -8173,7 +8177,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
8173
8177
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
|
|
8174
8178
|
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8175
8179
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
|
|
8176
|
-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev:
|
|
8180
|
+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8177
8181
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
|
|
8178
8182
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
8179
8183
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -675,6 +675,10 @@ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
|
|
|
675
675
|
width?: number;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
+
interface ReadableStreamBYOBReaderReadOptions {
|
|
679
|
+
min?: number;
|
|
680
|
+
}
|
|
681
|
+
|
|
678
682
|
interface ReadableStreamGetReaderOptions {
|
|
679
683
|
/**
|
|
680
684
|
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
@@ -7590,7 +7594,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7590
7594
|
*
|
|
7591
7595
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7592
7596
|
*/
|
|
7593
|
-
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
7597
|
+
read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7594
7598
|
/**
|
|
7595
7599
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7596
7600
|
*
|
|
@@ -8136,7 +8140,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
8136
8140
|
"fetch": FetchEvent;
|
|
8137
8141
|
"install": ExtendableEvent;
|
|
8138
8142
|
"message": ExtendableMessageEvent;
|
|
8139
|
-
"messageerror":
|
|
8143
|
+
"messageerror": ExtendableMessageEvent;
|
|
8140
8144
|
"notificationclick": NotificationEvent;
|
|
8141
8145
|
"notificationclose": NotificationEvent;
|
|
8142
8146
|
"push": PushEvent;
|
|
@@ -8173,7 +8177,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
8173
8177
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
|
|
8174
8178
|
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8175
8179
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
|
|
8176
|
-
onmessageerror: ((this: ServiceWorkerGlobalScope, ev:
|
|
8180
|
+
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
8177
8181
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
|
|
8178
8182
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
8179
8183
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
|