Skip to main content
Module

x/hex/formatters/mod.ts>Formatter

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface Formatter
import { type Formatter } from "https://deno.land/x/hex@v0.4.9/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>