mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Added find method with no args (#9484)
This commit is contained in:
committed by
Horiuchi_H
parent
473232e5db
commit
1be72cdce3
1
mongoose/mongoose.d.ts
vendored
1
mongoose/mongoose.d.ts
vendored
@@ -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[]>;
|
||||
|
||||
Reference in New Issue
Block a user