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

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

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

Create a converter for enums.

Parameters

name: string
values: string[]

Returns

(v: any, opts: ValueConverterOpts) => string