From 13327ae0fcff8e7e307fda4a36801bcd684d5622 Mon Sep 17 00:00:00 2001 From: Krzysztof Date: Tue, 9 Oct 2018 20:12:21 +0200 Subject: [PATCH] [mongodb] Allow "date" type in $currentDate (#29568) --- types/mongodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };