@types/web 0.0.233 → 0.0.234

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 CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.233 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.233.
50
+ You can read what changed in version 0.0.234 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.234.
package/index.d.ts CHANGED
@@ -186,26 +186,57 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
186
186
  interface AuthenticationExtensionsClientInputs {
187
187
  appid?: string;
188
188
  credProps?: boolean;
189
+ credentialProtectionPolicy?: string;
190
+ enforceCredentialProtectionPolicy?: boolean;
189
191
  hmacCreateSecret?: boolean;
192
+ largeBlob?: AuthenticationExtensionsLargeBlobInputs;
190
193
  minPinLength?: boolean;
191
194
  prf?: AuthenticationExtensionsPRFInputs;
192
195
  }
193
196
 
194
197
  interface AuthenticationExtensionsClientInputsJSON {
198
+ appid?: string;
199
+ credProps?: boolean;
200
+ largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
201
+ prf?: AuthenticationExtensionsPRFInputsJSON;
195
202
  }
196
203
 
197
204
  interface AuthenticationExtensionsClientOutputs {
198
205
  appid?: boolean;
199
206
  credProps?: CredentialPropertiesOutput;
200
207
  hmacCreateSecret?: boolean;
208
+ largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
201
209
  prf?: AuthenticationExtensionsPRFOutputs;
202
210
  }
203
211
 
212
+ interface AuthenticationExtensionsLargeBlobInputs {
213
+ read?: boolean;
214
+ support?: string;
215
+ write?: BufferSource;
216
+ }
217
+
218
+ interface AuthenticationExtensionsLargeBlobInputsJSON {
219
+ read?: boolean;
220
+ support?: string;
221
+ write?: Base64URLString;
222
+ }
223
+
224
+ interface AuthenticationExtensionsLargeBlobOutputs {
225
+ blob?: ArrayBuffer;
226
+ supported?: boolean;
227
+ written?: boolean;
228
+ }
229
+
204
230
  interface AuthenticationExtensionsPRFInputs {
205
231
  eval?: AuthenticationExtensionsPRFValues;
206
232
  evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
207
233
  }
208
234
 
235
+ interface AuthenticationExtensionsPRFInputsJSON {
236
+ eval?: AuthenticationExtensionsPRFValuesJSON;
237
+ evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;
238
+ }
239
+
209
240
  interface AuthenticationExtensionsPRFOutputs {
210
241
  enabled?: boolean;
211
242
  results?: AuthenticationExtensionsPRFValues;
@@ -216,6 +247,11 @@ interface AuthenticationExtensionsPRFValues {
216
247
  second?: BufferSource;
217
248
  }
218
249
 
250
+ interface AuthenticationExtensionsPRFValuesJSON {
251
+ first: Base64URLString;
252
+ second?: Base64URLString;
253
+ }
254
+
219
255
  interface AuthenticatorSelectionCriteria {
220
256
  authenticatorAttachment?: AuthenticatorAttachment;
221
257
  requireResidentKey?: boolean;
@@ -10115,7 +10151,7 @@ interface GlobalEventHandlersEventMap {
10115
10151
  "canplay": Event;
10116
10152
  "canplaythrough": Event;
10117
10153
  "change": Event;
10118
- "click": MouseEvent;
10154
+ "click": PointerEvent;
10119
10155
  "close": Event;
10120
10156
  "compositionend": CompositionEvent;
10121
10157
  "compositionstart": CompositionEvent;
@@ -10262,7 +10298,7 @@ interface GlobalEventHandlers {
10262
10298
  *
10263
10299
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
10264
10300
  */
10265
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
10301
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
10266
10302
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
10267
10303
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10268
10304
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
@@ -23637,7 +23673,7 @@ interface ServiceWorkerRegistration extends EventTarget {
23637
23673
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
23638
23674
  unregister(): Promise<boolean>;
23639
23675
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
23640
- update(): Promise<void>;
23676
+ update(): Promise<ServiceWorkerRegistration>;
23641
23677
  addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
23642
23678
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
23643
23679
  removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -30219,7 +30255,7 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
30219
30255
  *
30220
30256
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
30221
30257
  */
30222
- declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
30258
+ declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
30223
30259
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
30224
30260
  declare var onclose: ((this: Window, ev: Event) => any) | null;
30225
30261
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.233",
3
+ "version": "0.0.234",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -186,26 +186,57 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
186
186
  interface AuthenticationExtensionsClientInputs {
187
187
  appid?: string;
188
188
  credProps?: boolean;
189
+ credentialProtectionPolicy?: string;
190
+ enforceCredentialProtectionPolicy?: boolean;
189
191
  hmacCreateSecret?: boolean;
192
+ largeBlob?: AuthenticationExtensionsLargeBlobInputs;
190
193
  minPinLength?: boolean;
191
194
  prf?: AuthenticationExtensionsPRFInputs;
192
195
  }
193
196
 
194
197
  interface AuthenticationExtensionsClientInputsJSON {
198
+ appid?: string;
199
+ credProps?: boolean;
200
+ largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
201
+ prf?: AuthenticationExtensionsPRFInputsJSON;
195
202
  }
196
203
 
197
204
  interface AuthenticationExtensionsClientOutputs {
198
205
  appid?: boolean;
199
206
  credProps?: CredentialPropertiesOutput;
200
207
  hmacCreateSecret?: boolean;
208
+ largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
201
209
  prf?: AuthenticationExtensionsPRFOutputs;
202
210
  }
203
211
 
212
+ interface AuthenticationExtensionsLargeBlobInputs {
213
+ read?: boolean;
214
+ support?: string;
215
+ write?: BufferSource;
216
+ }
217
+
218
+ interface AuthenticationExtensionsLargeBlobInputsJSON {
219
+ read?: boolean;
220
+ support?: string;
221
+ write?: Base64URLString;
222
+ }
223
+
224
+ interface AuthenticationExtensionsLargeBlobOutputs {
225
+ blob?: ArrayBuffer;
226
+ supported?: boolean;
227
+ written?: boolean;
228
+ }
229
+
204
230
  interface AuthenticationExtensionsPRFInputs {
205
231
  eval?: AuthenticationExtensionsPRFValues;
206
232
  evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
207
233
  }
208
234
 
235
+ interface AuthenticationExtensionsPRFInputsJSON {
236
+ eval?: AuthenticationExtensionsPRFValuesJSON;
237
+ evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;
238
+ }
239
+
209
240
  interface AuthenticationExtensionsPRFOutputs {
210
241
  enabled?: boolean;
211
242
  results?: AuthenticationExtensionsPRFValues;
@@ -216,6 +247,11 @@ interface AuthenticationExtensionsPRFValues {
216
247
  second?: BufferSource;
217
248
  }
218
249
 
250
+ interface AuthenticationExtensionsPRFValuesJSON {
251
+ first: Base64URLString;
252
+ second?: Base64URLString;
253
+ }
254
+
219
255
  interface AuthenticatorSelectionCriteria {
220
256
  authenticatorAttachment?: AuthenticatorAttachment;
221
257
  requireResidentKey?: boolean;
@@ -10105,7 +10141,7 @@ interface GlobalEventHandlersEventMap {
10105
10141
  "canplay": Event;
10106
10142
  "canplaythrough": Event;
10107
10143
  "change": Event;
10108
- "click": MouseEvent;
10144
+ "click": PointerEvent;
10109
10145
  "close": Event;
10110
10146
  "compositionend": CompositionEvent;
10111
10147
  "compositionstart": CompositionEvent;
@@ -10252,7 +10288,7 @@ interface GlobalEventHandlers {
10252
10288
  *
10253
10289
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
10254
10290
  */
10255
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
10291
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
10256
10292
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
10257
10293
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10258
10294
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
@@ -23616,7 +23652,7 @@ interface ServiceWorkerRegistration extends EventTarget {
23616
23652
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
23617
23653
  unregister(): Promise<boolean>;
23618
23654
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
23619
- update(): Promise<void>;
23655
+ update(): Promise<ServiceWorkerRegistration>;
23620
23656
  addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
23621
23657
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
23622
23658
  removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -30197,7 +30233,7 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
30197
30233
  *
30198
30234
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
30199
30235
  */
30200
- declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
30236
+ declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
30201
30237
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
30202
30238
  declare var onclose: ((this: Window, ev: Event) => any) | null;
30203
30239
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
package/ts5.6/index.d.ts CHANGED
@@ -186,26 +186,57 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
186
186
  interface AuthenticationExtensionsClientInputs {
187
187
  appid?: string;
188
188
  credProps?: boolean;
189
+ credentialProtectionPolicy?: string;
190
+ enforceCredentialProtectionPolicy?: boolean;
189
191
  hmacCreateSecret?: boolean;
192
+ largeBlob?: AuthenticationExtensionsLargeBlobInputs;
190
193
  minPinLength?: boolean;
191
194
  prf?: AuthenticationExtensionsPRFInputs;
192
195
  }
193
196
 
194
197
  interface AuthenticationExtensionsClientInputsJSON {
198
+ appid?: string;
199
+ credProps?: boolean;
200
+ largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
201
+ prf?: AuthenticationExtensionsPRFInputsJSON;
195
202
  }
196
203
 
197
204
  interface AuthenticationExtensionsClientOutputs {
198
205
  appid?: boolean;
199
206
  credProps?: CredentialPropertiesOutput;
200
207
  hmacCreateSecret?: boolean;
208
+ largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
201
209
  prf?: AuthenticationExtensionsPRFOutputs;
202
210
  }
203
211
 
212
+ interface AuthenticationExtensionsLargeBlobInputs {
213
+ read?: boolean;
214
+ support?: string;
215
+ write?: BufferSource;
216
+ }
217
+
218
+ interface AuthenticationExtensionsLargeBlobInputsJSON {
219
+ read?: boolean;
220
+ support?: string;
221
+ write?: Base64URLString;
222
+ }
223
+
224
+ interface AuthenticationExtensionsLargeBlobOutputs {
225
+ blob?: ArrayBuffer;
226
+ supported?: boolean;
227
+ written?: boolean;
228
+ }
229
+
204
230
  interface AuthenticationExtensionsPRFInputs {
205
231
  eval?: AuthenticationExtensionsPRFValues;
206
232
  evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
207
233
  }
208
234
 
235
+ interface AuthenticationExtensionsPRFInputsJSON {
236
+ eval?: AuthenticationExtensionsPRFValuesJSON;
237
+ evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;
238
+ }
239
+
209
240
  interface AuthenticationExtensionsPRFOutputs {
210
241
  enabled?: boolean;
211
242
  results?: AuthenticationExtensionsPRFValues;
@@ -216,6 +247,11 @@ interface AuthenticationExtensionsPRFValues {
216
247
  second?: BufferSource;
217
248
  }
218
249
 
250
+ interface AuthenticationExtensionsPRFValuesJSON {
251
+ first: Base64URLString;
252
+ second?: Base64URLString;
253
+ }
254
+
219
255
  interface AuthenticatorSelectionCriteria {
220
256
  authenticatorAttachment?: AuthenticatorAttachment;
221
257
  requireResidentKey?: boolean;
@@ -10115,7 +10151,7 @@ interface GlobalEventHandlersEventMap {
10115
10151
  "canplay": Event;
10116
10152
  "canplaythrough": Event;
10117
10153
  "change": Event;
10118
- "click": MouseEvent;
10154
+ "click": PointerEvent;
10119
10155
  "close": Event;
10120
10156
  "compositionend": CompositionEvent;
10121
10157
  "compositionstart": CompositionEvent;
@@ -10262,7 +10298,7 @@ interface GlobalEventHandlers {
10262
10298
  *
10263
10299
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
10264
10300
  */
10265
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
10301
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
10266
10302
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
10267
10303
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10268
10304
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
@@ -23637,7 +23673,7 @@ interface ServiceWorkerRegistration extends EventTarget {
23637
23673
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
23638
23674
  unregister(): Promise<boolean>;
23639
23675
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
23640
- update(): Promise<void>;
23676
+ update(): Promise<ServiceWorkerRegistration>;
23641
23677
  addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
23642
23678
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
23643
23679
  removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -30219,7 +30255,7 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
30219
30255
  *
30220
30256
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
30221
30257
  */
30222
- declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
30258
+ declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
30223
30259
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
30224
30260
  declare var onclose: ((this: Window, ev: Event) => any) | null;
30225
30261
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */