Skip to content

Commit 3d4274e

Browse files
authored
Merge pull request #14239 from Automattic/vkarpov15/gh-14234
types(model): add missing `strict` property to `bulkWrite()` top level options
2 parents 62223bf + 2f599b9 commit 3d4274e

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)