Files
DefinitelyTyped/types/mongoose-auto-increment/index.d.ts
Federico Caselli 7fc1644080 [mongodb] Added support for default generic types (#16198)
* Added support for ts2.3 default generic types

* Updated find and findOne

* Capitalized TypeScript Version

* Added missing TypeScript Version: 2.3

* Added TypeScript Version: 2.3 to express-brute-mongo; removed easy-jsend test dependency on mongoose
2017-06-07 10:41:33 -07:00

18 lines
611 B
TypeScript

// Type definitions for mongoose-auto-increment 5.0.1
// Project: https://github.com/codetunnel/mongoose-auto-increment
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Connection, Schema, Mongoose } from 'mongoose';
/**
* Initialize plugin by creating counter collection in database.
*/
declare function initialize(connection: Connection): void;
/**
* The function to use when invoking the plugin on a custom schema.
*/
declare function plugin(schema: Schema, options: Object): void;