Skip to content

Commit

Permalink
fix(index.d.ts): change document.validateSync return type to Validati…
Browse files Browse the repository at this point in the history
…onError
  • Loading branch information
michaln-q committed Apr 26, 2021
1 parent de0cdc4 commit aef649e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ declare module 'mongoose' {
validate(pathsToValidate: Array<string>, options: any, callback: (err: CallbackError) => void): void;

/** Executes registered validation rules (skipping asynchronous validators) for this document. */
validateSync(pathsToValidate?: Array<string>, options?: any): NativeError | null;
validateSync(pathsToValidate?: Array<string>, options?: any): Error.ValidationError | null;
}

interface AcceptsDiscriminator {
Expand Down

0 comments on commit aef649e

Please sign in to comment.