UNPKG

@mdcc/at-json

Version:

A declarative mapper to and from JSON.

11 lines (10 loc) 414 B
import { Constructable, DecoratorInputWithoutCustomFunctions } from '../interfaces'; export type MapDecoratorInput = DecoratorInputWithoutCustomFunctions & { complexType?: Constructable<any>; }; /** * A custom decorator for handling objects as maps. * * @param params the mapping options to apply to the values of the map. */ export declare function JsonMap(params?: MapDecoratorInput): PropertyDecorator;