mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #28360 from mschilde/fix/mongoose-validators
[mongoose] fixed schema validator type definition
This commit is contained in:
Vendored
+2
-2
@@ -976,8 +976,8 @@ declare module "mongoose" {
|
||||
*/
|
||||
validate?: RegExp | [RegExp, string] |
|
||||
SchemaTypeOpts.ValidateFn<T> | [SchemaTypeOpts.ValidateFn<T>, string] |
|
||||
SchemaTypeOpts.ValidateOpts | SchemaTypeOpts.ValidateOpts[] |
|
||||
SchemaTypeOpts.AsyncValidateOpts | SchemaTypeOpts.AsyncValidateOpts[];
|
||||
SchemaTypeOpts.ValidateOpts | SchemaTypeOpts.AsyncValidateOpts |
|
||||
(SchemaTypeOpts.ValidateOpts | SchemaTypeOpts.AsyncValidateOpts)[];
|
||||
|
||||
/** Declares an unique index. */
|
||||
unique?: boolean | any;
|
||||
|
||||
Reference in New Issue
Block a user