mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* improve cursor when use as async iterator * specify typescript 3.2 as minimum version * disable await-promise rule * update dependencies * improve tests * require 3.2 in dependencies * require 3.2 in dependencies
18 lines
619 B
TypeScript
18 lines
619 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
|
|
// Minimum TypeScript Version: 3.2
|
|
|
|
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;
|