mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
19 lines
609 B
TypeScript
19 lines
609 B
TypeScript
// Type definitions for mongoose-seeder 1.2.1
|
|
// Project: https://github.com/SamVerschueren/mongoose-seeder
|
|
// Definitions by: Crevil <https://github.com/Crevil>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as Q from 'q';
|
|
|
|
export interface IOptions {
|
|
dropDatabase?: boolean;
|
|
dropCollections?: boolean;
|
|
}
|
|
|
|
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>;
|