0.4.13 • Published 6 months ago
@types/mongoose-simple-random v0.4.13
Installation
npm install --save @types/mongoose-simple-random
Summary
This package contains type definitions for mongoose-simple-random (https://github.com/larryprice/mongoose-simple-random).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mongoose-simple-random.
index.d.ts
// 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
// Minimum TypeScript Version: 4.1
import mongoose = require('mongoose');
declare function pluginFunc(schema: mongoose.Schema): void;
declare namespace pluginFunc { }
export = pluginFunc;
declare module "mongoose" {
interface Model<T> extends NodeJS.EventEmitter {
findRandom(conditions: Object, projection?: Object | null, options?: Object | null, callback?: (err: any, res?: T[]) => void)
: void;
}
}
Additional Details
- Last updated: Sun, 24 Apr 2022 14:31:47 GMT
- Dependencies: @types/mongoose
- Global values: none
Credits
These definitions were written by TypeScript Bot.