Update index.d.ts

Accepted proposed change from pull request
This commit is contained in:
Roberts Slisans
2017-06-24 15:43:13 +03:00
committed by GitHub
parent 8d0889c41a
commit d1ffcfe713

View File

@@ -4,6 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="mongoose" />
// tslint:disable-next-line no-single-declare-module
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)