UNPKG

@liskhq/lisk-codec

Version:

Implementation of decoder and encoder using Lisk JSON schema according to the Lisk protocol

9 lines (8 loc) 393 B
import { IteratableGenericObject, IteratorReturnValue, SchemaProps } from './types'; export declare const iterator: (this: IteratableGenericObject) => { next: () => { done: boolean; value: IteratorReturnValue; }; }; export declare const recursiveTypeCast: (mode: 'toJSON' | 'fromJSON', object: IteratableGenericObject, schema: SchemaProps, dataPath: string[]) => void;