@types/serviceworker 0.0.83 → 0.0.85

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +18 -6
  3. 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.83 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.83.
31
+ You can read what changed in version 0.0.85 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.85.
package/index.d.ts CHANGED
@@ -490,6 +490,17 @@ interface ReadableStreamGetReaderOptions {
490
490
  mode?: ReadableStreamReaderMode;
491
491
  }
492
492
 
493
+ interface ReadableStreamIteratorOptions {
494
+ /**
495
+ * Asynchronously iterates over the chunks in the stream's internal queue.
496
+ *
497
+ * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
498
+ *
499
+ * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
500
+ */
501
+ preventCancel?: boolean;
502
+ }
503
+
493
504
  interface ReadableStreamReadDoneResult<T> {
494
505
  done: true;
495
506
  value?: T;
@@ -587,16 +598,16 @@ interface RsaPssParams extends Algorithm {
587
598
  interface SecurityPolicyViolationEventInit extends EventInit {
588
599
  blockedURI?: string;
589
600
  columnNumber?: number;
590
- disposition: SecurityPolicyViolationEventDisposition;
591
- documentURI: string;
592
- effectiveDirective: string;
601
+ disposition?: SecurityPolicyViolationEventDisposition;
602
+ documentURI?: string;
603
+ effectiveDirective?: string;
593
604
  lineNumber?: number;
594
- originalPolicy: string;
605
+ originalPolicy?: string;
595
606
  referrer?: string;
596
607
  sample?: string;
597
608
  sourceFile?: string;
598
- statusCode: number;
599
- violatedDirective: string;
609
+ statusCode?: number;
610
+ violatedDirective?: string;
600
611
  }
601
612
 
602
613
  interface StorageEstimate {
@@ -4883,6 +4894,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
4883
4894
 
4884
4895
  /**
4885
4896
  * This ServiceWorker API interface represents the global execution context of a service worker.
4897
+ * Available only in secure contexts.
4886
4898
  *
4887
4899
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
4888
4900
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],