UNPKG

@eklabdev/blingts4

Version:

A comprehensive TypeScript decorators library implementing Stage 2 decorators for TS 4.9+

14 lines (13 loc) 362 B
/** * Adds serialization capabilities to a class * @param options Serialization options */ export declare function Serializable(options?: { toJSON?: boolean; toObject?: boolean; transform?: (value: unknown) => unknown; }): <T extends new (...args: any[]) => any>(target: T) => { new (...args: any[]): { [x: string]: any; }; } & T;