Export the FilterQuery type

This commit is contained in:
Alexander Christie
2018-03-20 15:26:46 +00:00
committed by GitHub
parent 72b9817260
commit fb2ce6d073

View File

@@ -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];