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

x/hex/src/mod.ts>formatters.Formatter

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface formatters.Formatter
Re-export
import { type formatters } from "https://deno.land/x/hex@0.5.15/src/mod.ts";
const { Formatter } = formatters;

Type Parameters

optional
TSource = unknown
optional
TTarget = string

Properties

names: readonly string[]
serialize: (payload: TSource | Promise<TSource>) => Promise<TTarget>
optional
deserialize: (payload: TTarget | Promise<TTarget>) => Promise<TSource>