@decaf-ts/decorator-validation
Version:
simple decorator based validation engine
13 lines (12 loc) • 522 B
TypeScript
import { Constructor } from "@decaf-ts/decoration";
import { Serializer } from "./types";
export declare class Serialization {
private static current;
private static cache;
private constructor();
private static get;
static register(key: string, func: Constructor<Serializer<any>>, setDefault?: boolean): void;
static serialize(obj: any, method?: string, ...args: any[]): any;
static deserialize(obj: string, method?: string, ...args: any[]): any;
static setDefault(method: string): void;
}