@lab900/typescript-serializer
Version:
JSON serialization/deserialization of Typescript objects
9 lines (8 loc) • 447 B
TypeScript
import { Constructor } from '../types';
export declare class Deserialize {
private static readonly strategy;
static convertSingleValue(sourceObject: any, type: any, propertyKey: string): any;
static convertObject(sourceObject: object, propertyType: any, propertyKey?: string): any;
static convertArray<T = any>(sourceObject: T[], type: any, key: string): Array<any>;
static instantiateType<T = any>(ctor: Constructor<T>): T;
}