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
1 parent a17a2c3 commit a5c98c2Copy full SHA for a5c98c2
index.d.ts
@@ -1303,7 +1303,7 @@ declare module "mongoose" {
1303
alias?: string;
1304
1305
/** Function or object describing how to validate this schematype. See [validation docs](https://mongoosejs.com/docs/validation.html). */
1306
- validate?: RegExp | [RegExp, string] | Function | [Function , string] | ValidateOpts<T>;
+ validate?: RegExp | [RegExp, string] | Function | [Function , string] | ValidateOpts<T> | ValidateOpts<T>[];
1307
1308
/** Allows overriding casting logic for this individual path. If a string, the given string overwrites Mongoose's default cast error message. */
1309
cast?: string;
0 commit comments