Skip to content

Commit 2f599b9

Browse files
committed
types(model): add missing strict property to bulkWrite() top level options
Fix #14234 Re: #8782 Re: #8778
1 parent 2657417 commit 2f599b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/models.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ declare module 'mongoose' {
2727
skipValidation?: boolean;
2828
throwOnValidationError?: boolean;
2929
timestamps?: boolean;
30+
strict?: boolean | 'throw';
3031
}
3132

3233
interface MongooseBulkWritePerWriteOptions {
3334
timestamps?: boolean;
34-
strict?: boolean;
35+
strict?: boolean | 'throw';
3536
session?: ClientSession;
3637
skipValidation?: boolean;
3738
}

0 commit comments

Comments
 (0)