UNPKG

@interweb-it/jam-codec

Version:

TypeScript implementation of the JAM codec

10 lines (9 loc) 267 B
import { Value, EnumType } from './types'; /** * Encode a value to binary format */ export declare function encode(value: Value | EnumType): Uint8Array; /** * Decode a binary format to value */ export declare function decode(input: Uint8Array): Value | EnumType;