Skip to main content
Module

x/hex/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/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>