@types/webworker 0.0.5 → 0.0.7
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 +18 -2
- package/iterable.d.ts +1 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +18 -2
- package/ts5.5/iterable.d.ts +1 -1
- package/ts5.6/index.d.ts +18 -2
- package/ts5.6/iterable.d.ts +1 -1
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.7 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.7.
|
package/index.d.ts
CHANGED
|
@@ -606,6 +606,11 @@ interface PushEventInit extends ExtendableEventInit {
|
|
|
606
606
|
data?: PushMessageDataInit;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
+
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
610
|
+
newSubscription?: PushSubscription;
|
|
611
|
+
oldSubscription?: PushSubscription;
|
|
612
|
+
}
|
|
613
|
+
|
|
609
614
|
interface PushSubscriptionJSON {
|
|
610
615
|
endpoint?: string;
|
|
611
616
|
expirationTime?: EpochTimeStamp | null;
|
|
@@ -5497,6 +5502,17 @@ declare var PushSubscription: {
|
|
|
5497
5502
|
new(): PushSubscription;
|
|
5498
5503
|
};
|
|
5499
5504
|
|
|
5505
|
+
/** Available only in secure contexts. */
|
|
5506
|
+
interface PushSubscriptionChangeEvent extends ExtendableEvent {
|
|
5507
|
+
readonly newSubscription: PushSubscription | null;
|
|
5508
|
+
readonly oldSubscription: PushSubscription | null;
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5511
|
+
declare var PushSubscriptionChangeEvent: {
|
|
5512
|
+
prototype: PushSubscriptionChangeEvent;
|
|
5513
|
+
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
|
|
5514
|
+
};
|
|
5515
|
+
|
|
5500
5516
|
/**
|
|
5501
5517
|
* The **`PushSubscriptionOptions`** interface of the Push API represents the options associated with a push subscription.
|
|
5502
5518
|
* Available only in secure contexts.
|
|
@@ -6094,7 +6110,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
6094
6110
|
"notificationclick": NotificationEvent;
|
|
6095
6111
|
"notificationclose": NotificationEvent;
|
|
6096
6112
|
"push": PushEvent;
|
|
6097
|
-
"pushsubscriptionchange":
|
|
6113
|
+
"pushsubscriptionchange": PushSubscriptionChangeEvent;
|
|
6098
6114
|
}
|
|
6099
6115
|
|
|
6100
6116
|
/**
|
|
@@ -6125,7 +6141,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
6125
6141
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
|
|
6126
6142
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
6127
6143
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
|
|
6128
|
-
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev:
|
|
6144
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
|
|
6129
6145
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
|
|
6130
6146
|
readonly registration: ServiceWorkerRegistration;
|
|
6131
6147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
|
package/iterable.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ interface WebGL2RenderingContextBase {
|
|
|
174
174
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
175
175
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
176
176
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
177
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>):
|
|
177
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
178
178
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
179
179
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
180
180
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -606,6 +606,11 @@ interface PushEventInit extends ExtendableEventInit {
|
|
|
606
606
|
data?: PushMessageDataInit;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
+
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
610
|
+
newSubscription?: PushSubscription;
|
|
611
|
+
oldSubscription?: PushSubscription;
|
|
612
|
+
}
|
|
613
|
+
|
|
609
614
|
interface PushSubscriptionJSON {
|
|
610
615
|
endpoint?: string;
|
|
611
616
|
expirationTime?: EpochTimeStamp | null;
|
|
@@ -5497,6 +5502,17 @@ declare var PushSubscription: {
|
|
|
5497
5502
|
new(): PushSubscription;
|
|
5498
5503
|
};
|
|
5499
5504
|
|
|
5505
|
+
/** Available only in secure contexts. */
|
|
5506
|
+
interface PushSubscriptionChangeEvent extends ExtendableEvent {
|
|
5507
|
+
readonly newSubscription: PushSubscription | null;
|
|
5508
|
+
readonly oldSubscription: PushSubscription | null;
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5511
|
+
declare var PushSubscriptionChangeEvent: {
|
|
5512
|
+
prototype: PushSubscriptionChangeEvent;
|
|
5513
|
+
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
|
|
5514
|
+
};
|
|
5515
|
+
|
|
5500
5516
|
/**
|
|
5501
5517
|
* The **`PushSubscriptionOptions`** interface of the Push API represents the options associated with a push subscription.
|
|
5502
5518
|
* Available only in secure contexts.
|
|
@@ -6094,7 +6110,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
6094
6110
|
"notificationclick": NotificationEvent;
|
|
6095
6111
|
"notificationclose": NotificationEvent;
|
|
6096
6112
|
"push": PushEvent;
|
|
6097
|
-
"pushsubscriptionchange":
|
|
6113
|
+
"pushsubscriptionchange": PushSubscriptionChangeEvent;
|
|
6098
6114
|
}
|
|
6099
6115
|
|
|
6100
6116
|
/**
|
|
@@ -6125,7 +6141,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
6125
6141
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
|
|
6126
6142
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
6127
6143
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
|
|
6128
|
-
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev:
|
|
6144
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
|
|
6129
6145
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
|
|
6130
6146
|
readonly registration: ServiceWorkerRegistration;
|
|
6131
6147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ interface WebGL2RenderingContextBase {
|
|
|
158
158
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
159
159
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
160
160
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
161
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>):
|
|
161
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
162
162
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
163
163
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
164
164
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -606,6 +606,11 @@ interface PushEventInit extends ExtendableEventInit {
|
|
|
606
606
|
data?: PushMessageDataInit;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
+
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
610
|
+
newSubscription?: PushSubscription;
|
|
611
|
+
oldSubscription?: PushSubscription;
|
|
612
|
+
}
|
|
613
|
+
|
|
609
614
|
interface PushSubscriptionJSON {
|
|
610
615
|
endpoint?: string;
|
|
611
616
|
expirationTime?: EpochTimeStamp | null;
|
|
@@ -5497,6 +5502,17 @@ declare var PushSubscription: {
|
|
|
5497
5502
|
new(): PushSubscription;
|
|
5498
5503
|
};
|
|
5499
5504
|
|
|
5505
|
+
/** Available only in secure contexts. */
|
|
5506
|
+
interface PushSubscriptionChangeEvent extends ExtendableEvent {
|
|
5507
|
+
readonly newSubscription: PushSubscription | null;
|
|
5508
|
+
readonly oldSubscription: PushSubscription | null;
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5511
|
+
declare var PushSubscriptionChangeEvent: {
|
|
5512
|
+
prototype: PushSubscriptionChangeEvent;
|
|
5513
|
+
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
|
|
5514
|
+
};
|
|
5515
|
+
|
|
5500
5516
|
/**
|
|
5501
5517
|
* The **`PushSubscriptionOptions`** interface of the Push API represents the options associated with a push subscription.
|
|
5502
5518
|
* Available only in secure contexts.
|
|
@@ -6094,7 +6110,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
6094
6110
|
"notificationclick": NotificationEvent;
|
|
6095
6111
|
"notificationclose": NotificationEvent;
|
|
6096
6112
|
"push": PushEvent;
|
|
6097
|
-
"pushsubscriptionchange":
|
|
6113
|
+
"pushsubscriptionchange": PushSubscriptionChangeEvent;
|
|
6098
6114
|
}
|
|
6099
6115
|
|
|
6100
6116
|
/**
|
|
@@ -6125,7 +6141,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
6125
6141
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
|
|
6126
6142
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
6127
6143
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
|
|
6128
|
-
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev:
|
|
6144
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
|
|
6129
6145
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
|
|
6130
6146
|
readonly registration: ServiceWorkerRegistration;
|
|
6131
6147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ interface WebGL2RenderingContextBase {
|
|
|
174
174
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
175
175
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
176
176
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
177
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>):
|
|
177
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
178
178
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
179
179
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
180
180
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|