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

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

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

type

{ [type: string]: (v: any, opts: ValueConverterOpts) => any; any(v: any): any; boolean(v: any, opts?: IntConverterOpts): boolean; byte(v: any, opts?: IntConverterOpts): number; octet(v: any, opts?: IntConverterOpts): number; short(v: any, opts?: IntConverterOpts): number; [unsigned short](v: any, opts?: IntConverterOpts): number; long(v: any, opts?: IntConverterOpts): number; [unsigned long](v: any, opts?: IntConverterOpts): number; [long long](v: any, opts?: IntConverterOpts): number; [unsigned long long](v: any, opts?: IntConverterOpts): number; float(v: any, opts?: ValueConverterOpts): number; [unrestricted float](v: any, opts?: ValueConverterOpts): number; double(v: any, opts?: ValueConverterOpts): number; [unrestricted double](v: any, opts?: ValueConverterOpts): number; DOMString(v: any, opts?: StringConverterOpts): string; ByteString(v: any, opts?: StringConverterOpts): string; USVString(v: any, opts?: StringConverterOpts): string; object(v: any, opts?: ValueConverterOpts): object; ArrayBuffer(v: any, opts?: BufferConverterOpts): ArrayBuffer; DataView(v: any, opts?: BufferConverterOpts): DataView; Int8Array(v: any, opts?: BufferConverterOpts): Int8Array; Int16Array(v: any, opts?: BufferConverterOpts): Int16Array; Int32Array(v: any, opts?: BufferConverterOpts): Int32Array; Uint8Array(v: any, opts?: BufferConverterOpts): Uint8Array; Uint16Array(v: any, opts?: BufferConverterOpts): Uint16Array; Uint32Array(v: any, opts?: BufferConverterOpts): Uint32Array; Uint8ClampedArray(v: any, opts?: BufferConverterOpts): Uint8ClampedArray; Float32Array(v: any, opts?: BufferConverterOpts): Float32Array; Float64Array(v: any, opts?: BufferConverterOpts): Float64Array; ArrayBufferView(v: any, opts?: BufferConverterOpts): ArrayBufferView; BufferSource(v: any, opts?: BufferConverterOpts): ArrayBuffer | ArrayBufferView; DOMTimeStamp(v: any, opts?: IntConverterOpts): number; Function(v: any, opts?: ValueConverterOpts): (...args: any) => any; VoidFunction(v: any, opts?: ValueConverterOpts): () => void; [UVString?](v: any, opts?: ValueConverterOpts): string | null; [sequence<double>](v: any, opts?: ValueConverterOpts): number[]; }