mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
made pathsToValidate in mongoose::validateSync optional
This commit is contained in:
Vendored
+1
-1
@@ -1065,7 +1065,7 @@ declare module "mongoose" {
|
||||
* @param pathsToValidate only validate the given paths
|
||||
* @returns MongooseError if there are errors during validation, or undefined if there is no error.
|
||||
*/
|
||||
validateSync(pathsToValidate: string | string[]): Error;
|
||||
validateSync(pathsToValidate?: string | string[]): Error;
|
||||
|
||||
/** Hash containing current validation errors. */
|
||||
errors: Object;
|
||||
|
||||
Reference in New Issue
Block a user