Merge pull request #31614 from admosity/patch-1

feat(@types/mongodb): export `Condition`
This commit is contained in:
Wesley Wigham
2018-12-24 21:00:42 -08:00
committed by GitHub
+1 -1
View File
@@ -999,7 +999,7 @@ export interface Collection<TSchema = Default> {
watch(pipeline?: Object[], options?: ChangeStreamOptions & { startAtClusterTime?: Timestamp, session?: ClientSession }): ChangeStream;
}
type Condition<T, P extends keyof T> = {
export type Condition<T, P extends keyof T> = {
$eq?: T[P];
$gt?: T[P];
$gte?: T[P];