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.