diff options
Diffstat (limited to 'ext/webidl/internal.d.ts')
-rw-r--r-- | ext/webidl/internal.d.ts | 21 |
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>( |