mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
712 B
TypeScript
18 lines
712 B
TypeScript
// Type definitions for mongoose-simple-random 0.4
|
|
// Project: https://github.com/larryprice/mongoose-simple-random
|
|
// Definitions by: TypeScript Bot <https://github.com/typescript-bot>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.0
|
|
|
|
import mongoose = require('mongoose');
|
|
declare function pluginFunc(schema: mongoose.Schema): void;
|
|
declare namespace pluginFunc { }
|
|
export = pluginFunc;
|
|
|
|
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)
|
|
: void;
|
|
}
|
|
}
|