mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Fix for no documents found - make results optional
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ declare module 'mongoose-simple-random' {
|
||||
|
||||
declare module "mongoose" {
|
||||
interface Model<T extends Document> extends NodeJS.EventEmitter, ModelProperties {
|
||||
findRandom(conditions: Object, projection?: Object | null, options?: Object | null, callback?: (err: any, res: T[]) => void)
|
||||
findRandom(conditions: Object, projection?: Object | null, options?: Object | null, callback?: (err: any, res?: T[]) => void)
|
||||
: void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user