Skip to main content
The Deno 2 Release Candidate is 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.30.2/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