npm.io
1.2.10 • Published 11 months ago

@types/mongoose-seeder

Licence
MIT
Version
1.2.10
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 Q = require("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: Fri, 24 Oct 2025 0441 GMT
  • Dependencies: @types/q

Credits

These definitions were written by Crevil.