npm.io
5.0.38 • Published 2 years ago

@types/mongoose-auto-increment

Licence
MIT
Version
5.0.38
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.