- IsString(__namedParameters?): PropertyDecorator
Parameters
__namedParameters: PropertyOptions<string, {
canBeEmpty?: boolean;
customValidate?: CustomValidateOptions<unknown>;
isDate?: {
format: "date" | "date-time";
};
isEmail?: true;
maxLength?: number;
minLength?: number;
pattern?: {
message?: string | ((validationArguments) => string);
regex: RegExp;
};
}> = {}
Returns PropertyDecorator