We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mongoosejs
Learn more about funding links in repositories.
Report abuse
2 parents 7a52e45 + a5c98c2 commit ccfa041Copy full SHA for ccfa041
index.d.ts
@@ -1309,7 +1309,7 @@ declare module "mongoose" {
1309
alias?: string;
1310
1311
/** Function or object describing how to validate this schematype. See [validation docs](https://mongoosejs.com/docs/validation.html). */
1312
- validate?: RegExp | [RegExp, string] | Function | [Function , string] | ValidateOpts<T>;
+ validate?: RegExp | [RegExp, string] | Function | [Function , string] | ValidateOpts<T> | ValidateOpts<T>[];
1313
1314
/** Allows overriding casting logic for this individual path. If a string, the given string overwrites Mongoose's default cast error message. */
1315
cast?: string;
0 commit comments