UNPKG

@mvx/model

Version:

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

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