type alias Encoder

Function type for encoding values.

Type Parameters

TDecoded

The type of the value to encode

Definition

(
decoded: TDecoded,
target: Uint8Array,
context?: Context
) => number

Usage

import { type Encoder } from "mod.ts";