mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[mongodb] Allow "date" type in $currentDate (#29568)
This commit is contained in:
parent
8dc1bbffc1
commit
13327ae0fc
2
types/mongodb/index.d.ts
vendored
2
types/mongodb/index.d.ts
vendored
@ -866,7 +866,7 @@ export type UpdateQuery<T> = {
|
||||
$setOnInsert?: Partial<T> | { [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<T> | { [key: string]: any };
|
||||
$pop?: { [P in keyof T]?: -1 | 1 } | { [key: string]: -1 | 1 };
|
||||
$pull?: Partial<T> | { [key: string]: Condition<T, keyof T> };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user