Installation
npm install --save @types/mongoose-auto-increment
Summary
This package contains type definitions for mongoose-auto-increment (https://github.com/codetunnel/mongoose-auto-increment).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mongoose-auto-increment.
index.d.ts
import { Connection, Mongoose, Schema } 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;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node, mongoose
Credits
These definitions were written by Aya Morisawa.