made pathsToValidate in mongoose::validateSync optional

This commit is contained in:
Andrii Nasinnyk 2017-05-11 14:25:47 +03:00 committed by GitHub
parent ac9bfc4eec
commit e377be5ad1

View File

@ -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;