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

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

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

Type Parameters

K extends string | number | symbol
V

Parameters

keyConverter: (v: any, opts: ValueConverterOpts) => K
valueConverter: (v: any, opts: ValueConverterOpts) => V

Returns

(v: Record<K, V>, opts: ValueConverterOpts) => any