diff options
author | haturau <135221985+haturatu@users.noreply.github.com> | 2024-11-20 01:20:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 01:20:47 +0900 |
commit | 85719a67e59c7aa45bead26e4942d7df8b1b42d4 (patch) | |
tree | face0aecaac53e93ce2f23b53c48859bcf1a36ec /ext/webidl/internal.d.ts | |
parent | 67697bc2e4a62a9670699fd18ad0dd8efc5bd955 (diff) | |
parent | 186b52731c6bb326c4d32905c5e732d082e83465 (diff) |
Merge branch 'denoland:main' into main
Diffstat (limited to 'ext/webidl/internal.d.ts')
-rw-r--r-- | ext/webidl/internal.d.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/webidl/internal.d.ts b/ext/webidl/internal.d.ts index 1ce45463e..375d548d3 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>( @@ -559,4 +580,9 @@ declare module "ext:deno_webidl/00_webidl.js" { | "Symbol" | "BigInt" | "Object"; + + /** + * Check whether a value is an async iterable. + */ + function isAsyncIterable(v: any): boolean; } |