summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.webworker.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/dts/lib.webworker.d.ts')
-rw-r--r--cli/tsc/dts/lib.webworker.d.ts26
1 files changed, 20 insertions, 6 deletions
diff --git a/cli/tsc/dts/lib.webworker.d.ts b/cli/tsc/dts/lib.webworker.d.ts
index 3f722c1b0..5a1868e15 100644
--- a/cli/tsc/dts/lib.webworker.d.ts
+++ b/cli/tsc/dts/lib.webworker.d.ts
@@ -550,6 +550,17 @@ interface ReadableStreamGetReaderOptions {
mode?: ReadableStreamReaderMode;
}
+interface ReadableStreamIteratorOptions {
+ /**
+ * Asynchronously iterates over the chunks in the stream's internal queue.
+ *
+ * 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.
+ *
+ * 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.
+ */
+ preventCancel?: boolean;
+}
+
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
@@ -647,16 +658,16 @@ interface RsaPssParams extends Algorithm {
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
- disposition: SecurityPolicyViolationEventDisposition;
- documentURI: string;
- effectiveDirective: string;
+ disposition?: SecurityPolicyViolationEventDisposition;
+ documentURI?: string;
+ effectiveDirective?: string;
lineNumber?: number;
- originalPolicy: string;
+ originalPolicy?: string;
referrer?: string;
sample?: string;
sourceFile?: string;
- statusCode: number;
- violatedDirective: string;
+ statusCode?: number;
+ violatedDirective?: string;
}
interface StorageEstimate {
@@ -971,6 +982,8 @@ declare var AbortSignal: {
new(): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
+ any(signals: AbortSignal[]): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
@@ -5225,6 +5238,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
/**
* This ServiceWorker API interface represents the global execution context of a service worker.
+ * Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
*/