typescript-flat-serializer
Version:
A typescript library to serialize/deserialize classes to/from string in a flat format. Supports inheritance, circular reference and more
13 lines (12 loc) • 538 B
TypeScript
import { TSFlatPropertyMetadata } from './flat-property';
import { RFDCOptions } from './rfdc';
export type StringifyOptions = {
rFDCOptions?: RFDCOptions;
};
export declare const ATTR_CLASS_NAME = "__class__";
/**
* Get the flatPropertyMetadata searching on the object and on object's parent.
*/
export declare function getFlatPropertyMetadata(obj: any, propertyKey: string): TSFlatPropertyMetadata;
export declare function stringify(obj: any, options?: StringifyOptions): string;
export declare function parse<T>(str: string): T;