UNPKG

typescript-flat-serializer

Version:

A typescript library to serialize/deserialize classes to/from string in a flat format. Supports inheritance, circular reference and more

11 lines (10 loc) 457 B
import { Type } from './helpers'; export declare const registeredTSFlatObjects: Map<string, Type<any>>; export interface TSFlatObjectMetadata { constructorParams: Array<unknown>; } export interface TSFlatObjectProperties { constructorParams?: Array<unknown>; } export declare const TSFlatObject: (options?: TSFlatObjectProperties) => Function; export declare function registerTSFlatObject(target: Type<any>, options?: TSFlatObjectProperties): void;