UNPKG

electr0lysis

Version:

Simple framework for data serialization and interchange.

11 lines (10 loc) 388 B
import "f1ux/map/operator/getOrThrow"; import Decoder from "./Decoder"; import DecoderResult from "./DecoderResult"; import Type from "./reflect/Type"; declare class DecoderContext { private readonly decoders; constructor(decoders: [string, Decoder<any>][]); decode<T>(type: Type, view: DataView, offset?: number): DecoderResult<T>; } export default DecoderContext;