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

5.0.38 • Public • Published

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

Credits

These definitions were written by Aya Morisawa.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mongoose-auto-increment

Weekly Downloads

821

Version

5.0.38

License

MIT

Unpacked Size

3.49 kB

Total Files

5

Last publish

Collaborators

  • types