UNPKG

@mvx/model

Version:

@mvx/model is model for mvc frameworker on server.

21 lines (20 loc) 695 B
import { MaxLengthMetadata } from '../metadata'; export interface IMaxLengthDecorator<T extends MaxLengthMetadata> { /** * MaxLength decorator */ (MaxLength?: number, errorMessage?: string, dbtype?: string, dbfield?: string): PropertyDecorator; /** * MaxLength decorator with metadata map. * @param {T} [metadata] define matadata map to resolve value to the property. */ (metadata?: T): PropertyDecorator; /** * MaxLength decorator. */ (target: object, propertyKey: string | symbol, descriptor?: TypedPropertyDescriptor<any>): void; } /** * MaxLength decorator. */ export declare const MaxLength: IMaxLengthDecorator<MaxLengthMetadata>;