summaryrefslogtreecommitdiff
path: root/ext/webidl/internal.d.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-08-06 00:13:02 -0700
committerGitHub <noreply@github.com>2024-08-06 00:13:02 -0700
commitba40347a35d10cffeae83ee95f69f7bc281096dd (patch)
tree0e981a32601937293967815292d5bf617914163a /ext/webidl/internal.d.ts
parentf0cd2c45fcd4dfb841cee9d36bdda3be25c1a2a5 (diff)
feat(fetch): accept async iterables for body (#24623)
Implements https://github.com/whatwg/webidl/pull/1397 Fixes #21454 Closes #24849
Diffstat (limited to 'ext/webidl/internal.d.ts')
-rw-r--r--ext/webidl/internal.d.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/webidl/internal.d.ts b/ext/webidl/internal.d.ts
index 1ce45463e..d9266f5f5 100644
--- a/ext/webidl/internal.d.ts
+++ b/ext/webidl/internal.d.ts
@@ -439,6 +439,27 @@ declare module "ext:deno_webidl/00_webidl.js" {
) => T[];
/**
+ * Create a converter that converts an async iterable of the inner type.
+ */
+ function createAsyncIterableConverter<V, T>(
+ converter: (
+ v: V,
+ prefix?: string,
+ context?: string,
+ opts?: any,
+ ) => T,
+ ): (
+ v: any,
+ prefix?: string,
+ context?: string,
+ opts?: any,
+ ) => ConvertedAsyncIterable<V, T>;
+
+ interface ConvertedAsyncIterable<V, T> extends AsyncIterableIterator<T> {
+ value: V;
+ }
+
+ /**
* Create a converter that converts a Promise of the inner type.
*/
function createPromiseConverter<T>(