mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Export the FilterQuery type
This commit is contained in:
committed by
GitHub
parent
72b9817260
commit
fb2ce6d073
3
types/mongodb/index.d.ts
vendored
3
types/mongodb/index.d.ts
vendored
@@ -7,6 +7,7 @@
|
||||
// Gaurav Lahoti <https://github.com/dante-101>
|
||||
// Mariano Cortesi <https://github.com/mcortesi>
|
||||
// Enrico Picci <https://github.com/EnricoPicci>
|
||||
// Alexander Christie <https://github.com/AJCStriker>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -636,7 +637,7 @@ export interface Collection<TSchema = Default> {
|
||||
watch(pipeline?: Object[], options?: ChangeStreamOptions & { session?: ClientSession }): ChangeStream;
|
||||
}
|
||||
|
||||
type FilterQuery<T> = {
|
||||
export type FilterQuery<T> = {
|
||||
[P in keyof T]?: T[P] | {
|
||||
$eq?: T[P];
|
||||
$gt?: T[P];
|
||||
|
||||
Reference in New Issue
Block a user