express-cargo
Version:
express middleware for class-based request parsing
20 lines • 1.23 kB
TypeScript
export declare function min(minimum: number): PropertyDecorator;
export declare function max(maximum: number): PropertyDecorator;
export declare function prefix(prefixText: string): PropertyDecorator;
export declare function suffix(suffixText: string): PropertyDecorator;
export declare function equal(value: any): PropertyDecorator;
export declare function notEqual(value: any): PropertyDecorator;
export declare function range(min: number, max: number): PropertyDecorator;
export declare function isFalse(): PropertyDecorator;
export declare function isTrue(): PropertyDecorator;
export declare function length(value: number): PropertyDecorator;
export declare function maxLength(max: number): PropertyDecorator;
export declare function minLength(min: number): PropertyDecorator;
/**
* 속성 값이 주어진 값들 중 하나인지 확인합니다.
* @param options 허용되는 값의 배열.
*/
export declare function oneOf<T extends readonly any[]>(options: T): PropertyDecorator;
export declare function validate(validateFn: (value: unknown) => boolean, message?: string): PropertyDecorator;
export declare function regexp(pattern: RegExp, message?: string): PropertyDecorator;
//# sourceMappingURL=validator.d.ts.map