UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

21 lines (16 loc) 675 B
// 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 /// <reference path="../mongoose/mongoose.d.ts" /> declare module 'mongoose-auto-increment' { import { Connection, Schema, Mongoose } from 'mongoose'; /** * Initialize plugin by creating counter collection in database. */ function initialize(connection: Connection): void; /** * The function to use when invoking the plugin on a custom schema. */ function plugin(schema: Schema, options: Object): void; }