diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 3434cb070c..07b36603d4 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -866,7 +866,7 @@ export type UpdateQuery = { $setOnInsert?: Partial | { [key: string]: any }; $unset?: { [P in keyof T]?: '' } | { [key: string]: '' }; $rename?: { [key: string]: keyof T } | { [key: string]: string }; - $currentDate?: { [P in keyof T]?: (true | { $type: 'timestamp' }) } | { [key: string]: (true | { $type: 'timestamp' }) }; + $currentDate?: { [P in keyof T]?: (true | { $type: 'date' | 'timestamp' }) } | { [key: string]: (true | { $type: 'date' | 'timestamp' }) }; $addToSet?: Partial | { [key: string]: any }; $pop?: { [P in keyof T]?: -1 | 1 } | { [key: string]: -1 | 1 }; $pull?: Partial | { [key: string]: Condition };