forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequelize-fixtures.d.ts
31 lines (25 loc) · 1.11 KB
/
sequelize-fixtures.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Type definitions for Sequelize-Fixtures 0.4.7
// Project: https://github.com/domasx2/sequelize-fixtures
// Definitions by: Christian Schwarz <https://github.com/cschwarz/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../sequelize/sequelize.d.ts" />
declare module "sequelize-fixtures"
{
import * as Sequelize from "sequelize";
module SequelizeFixtures {
interface Options {
encoding?: string,
log?: (message: string) => void,
transaction?: Sequelize.Transaction,
transformFixtureDataFn?: (data: any) => any
}
interface SequelizeFixturesStatic {
loadFile(file: string, models: any, options?: Options): Promise<any>;
loadFiles(files: string[], models: any, options?: Options): Promise<any>;
loadFixture(fixture: any, models: any, options?: Options): Promise<any>;
loadFixtures(fixtures: any[], models: any, options?: Options): Promise<any>;
}
}
var sequelizeFixtures: SequelizeFixtures.SequelizeFixturesStatic;
export = sequelizeFixtures;
}