UNPKG

@klayr/codec

Version:

Implementation of decoder and encoder using Klayr JSON schema according to the Klayr 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;