mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add deep partial * Change typescript version to 2.8 * Change connect-mongo typescript version to 2.8 * Change joigoose typescript version to 2.8 * Update packages depending on mongoose to ts 2.8 * Update packages depending on mongoose to ts 2.8 * Update packages depending on mongoose to ts 2.8 * Update packages depending on mongoose to ts 2.8 * Update packages depending on mongoose to ts 2.8 * Update packages depending on mongoose to ts 2.8 * Update packages depending on mongoose to ts 2.8 * Update test to cover deep partial * Restore format
18 lines
706 B
TypeScript
18 lines
706 B
TypeScript
// Type definitions for mongoose-simple-random 0.4
|
|
// Project: https://github.com/larryprice/mongoose-simple-random
|
|
// Definitions by: Roberts Slisans <https://github.com/rsxdalv>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
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;
|
|
}
|
|
}
|