mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
made pathsToValidate in mongoose::validateSync optional
This commit is contained in:
parent
ac9bfc4eec
commit
e377be5ad1
2
types/mongoose/index.d.ts
vendored
2
types/mongoose/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user