1.2.9 • Published 6 months ago

@types/mongoose-seeder v1.2.9

Weekly downloads
37
License
MIT
Repository
github
Last release
6 months ago

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

// 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
// TypeScript Version: 2.3

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: Thu, 08 Jul 2021 18:50:57 GMT
  • Dependencies: @types/q
  • Global values: none

Credits

These definitions were written by Crevil.

1.2.9

6 months ago

1.2.8

7 months ago

1.2.7

8 months ago

1.2.6

3 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

8 years ago

1.2.1

8 years ago