mapper-json-c
Version:
mapper for json
14 lines (13 loc) • 556 B
TypeScript
import 'reflect-metadata';
/** 参数1的key,参数2的key */
export declare type IObjectEntriesProperty = [string, string] | undefined;
/**
* @description: 属性装饰器
*/
export declare function ObjectEntriesProperty(agu?: IObjectEntriesProperty): (target: any, propertyKey: string) => void;
/**
* @description: ObjectEntriesProperty装饰器(对象转数组)逻辑
*/
export declare function factoryObjectEntriesProperty(cMetadataVal: IObjectEntriesProperty, value: any): [string, unknown][] | {
[x: string]: unknown;
}[];