Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function Value.Encode
import { Value } from "https://deno.land/x/openbox@1.1.8/deps.ts";
const { Encode } = Value;

Encodes a value or throws if error

Type Parameters

T extends Types.TSchema
optional
E = Types.StaticEncode<T>

Parameters

schema: T
references: Types.TSchema[]
value: unknown

Encodes a value or throws if error

Type Parameters

T extends Types.TSchema
optional
E = Types.StaticEncode<T>

Parameters

schema: T
value: unknown