UNPKG

node-web-mvc

Version:
29 lines (28 loc) 766 B
declare class ApiModelProperty { /** * 属性简短描述 */ value: string; /** * 属性的示例值 */ example?: string | number | Date | boolean | Object; /** * 是否为必须值 */ required?: boolean; /** * 枚举 */ enum?: any; } /** * 用于标注实体类下的指定属性 */ declare const _default: { (options: string | import("../../servlets/annotations/Target").CreateOptions<typeof ApiModelProperty>): (target: Object, propertyKey: string) => any; (target: { [x: string]: any; }, propertyKey: string): any; } & import("../../servlets/annotations/annotation/type").LinkAnnotationType<typeof ApiModelProperty> & typeof ApiModelProperty; export default _default;