Added find method with no args (#9484)

This commit is contained in:
Luca Roverellli
2016-06-05 17:13:47 +02:00
committed by Horiuchi_H
parent 473232e5db
commit 1be72cdce3

View File

@@ -196,6 +196,7 @@ declare module "mongoose" {
distinct(field: string, conditions: Object, callback?: (err: any, res: T[]) => void): Query<T[]>;
ensureIndexes(callback: (err: any) => void): Promise<T>;
find(): Query<T[]>;
find(cond: Object, callback?: (err: any, res: T[]) => void): Query<T[]>;
find(cond: Object, fields: Object, callback?: (err: any, res: T[]) => void): Query<T[]>;
find(cond: Object, fields: Object, options: Object, callback?: (err: any, res: T[]) => void): Query<T[]>;