npm.io
0.4.13 • Published 2 years ago

@types/mongoose-simple-random

Licence
MIT
Version
0.4.13
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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

Credits

These definitions were written by TypeScript Bot.