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

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

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

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>