Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/ext/webidl/internal.d.ts>globalThis.__bootstrap.webidl.createPromiseConverter

A modern runtime for JavaScript and TypeScript.
Go to Latest
function globalThis.__bootstrap.webidl.createPromiseConverter
import { globalThis } from "https://deno.land/x/deno@v1.29.1/ext/webidl/internal.d.ts";
const { createPromiseConverter } = globalThis.__bootstrap.webidl;

Create a converter that converts a Promise of the inner type.

Parameters

converter: (v: any, opts: ValueConverterOpts) => T

Returns

(v: any, opts: ValueConverterOpts) => Promise<T>