Skip to content

Commit 0960fae

Browse files
committed
types(document): add ignoreAtomics option to isModified typedefs re: #14024
1 parent f7e9816 commit 0960fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/document.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ declare module 'mongoose' {
179179
* Returns true if any of the given paths are modified, else false. If no arguments, returns `true` if any path
180180
* in this document is modified.
181181
*/
182-
isModified(path?: string | Array<string>): boolean;
182+
isModified(path?: string | Array<string>, options?: { ignoreAtomics?: boolean } | null): boolean;
183183

184184
/** Boolean flag specifying if the document is new. */
185185
isNew: boolean;

0 commit comments

Comments
 (0)