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

1.2.9 • Public • Published

Installation

npm install --save @types/mongoose-seeder

Summary

This package contains type definitions for mongoose-seeder (https://github.com/SamVerschueren/mongoose-seeder).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mongoose-seeder.

index.d.ts

import * as Q from "q";

export interface IOptions {
    dropDatabase?: boolean | undefined;
    dropCollections?: boolean | undefined;
}

type seedCallback = (err: any, dbData: any) => void;

export function seed(data: any, options: IOptions, callback: seedCallback): void;
export function seed(data: any, callback: seedCallback): void;

export function seed(data: any, options: IOptions): Q.Promise<any>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/q

Credits

These definitions were written by Crevil.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mongoose-seeder

Weekly Downloads

21

Version

1.2.9

License

MIT

Unpacked Size

3.46 kB

Total Files

5

Last publish

Collaborators

  • types