@joktec/mongo
Version:
JokTec - Mongo Service
21 lines • 843 B
TypeScript
import { ApiPropertyOptions } from '@joktec/core';
import { PropOptionsForString } from '@typegoose/typegoose/lib/types';
import { IsEmailOptions } from 'validator/lib/isEmail';
import { IPropOptions } from '../prop.decorator';
export interface StringPropOptions extends PropOptionsForString {
isString?: boolean | [boolean, string] | {
message?: string;
};
isEmail?: boolean | [boolean, string] | (IsEmailOptions & {
message?: string;
});
isPhone?: boolean | [boolean, string] | {
locale?: string;
strictMode?: boolean;
message?: string;
};
isHexColor?: boolean | [boolean, string];
isUrl?: boolean | [boolean, string];
}
export declare function StringProps(opts: IPropOptions, swagger: ApiPropertyOptions): PropertyDecorator[];
//# sourceMappingURL=string.prop.d.ts.map