From 2f599b9e8a8668ab95426934142bc0794a313873 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sat, 6 Jan 2024 18:00:55 -0500 Subject: [PATCH] types(model): add missing `strict` property to `bulkWrite()` top level options Fix #14234 Re: #8782 Re: #8778 --- types/models.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/models.d.ts b/types/models.d.ts index 4494bb461b8..6520ac2cecf 100644 --- a/types/models.d.ts +++ b/types/models.d.ts @@ -27,11 +27,12 @@ declare module 'mongoose' { skipValidation?: boolean; throwOnValidationError?: boolean; timestamps?: boolean; + strict?: boolean | 'throw'; } interface MongooseBulkWritePerWriteOptions { timestamps?: boolean; - strict?: boolean; + strict?: boolean | 'throw'; session?: ClientSession; skipValidation?: boolean; }