@tunnel-cast/tunnel-cast
Version:
<br>
14 lines (13 loc) • 663 B
TypeScript
import { FieldConstraintProcedureOptions } from "../../../models/interfaces/field-constraint-procedure-options";
import { FieldConstraintFn } from "../../../models/interfaces/field-constraint-fn";
export declare const LENGTH = "length";
export declare const length: FieldConstraintFn<{
len: number;
min: number;
max: number;
}>;
export declare const lengthMessageBuilder: ({ fieldName }: {
fieldName: any;
}) => string;
export declare function Length(len: number, options?: FieldConstraintProcedureOptions): PropertyDecorator;
export declare function Length(min: number, max: number, options?: FieldConstraintProcedureOptions): PropertyDecorator;