@types/mongoose-simple-random
TypeScript icon, indicating that this package has built-in type declarations

0.4.13 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mongoose-simple-random

Weekly Downloads

51

Version

0.4.13

License

MIT

Unpacked Size

3.72 kB

Total Files

5

Last publish

Collaborators

  • types