Installation
npm install --save @types/sequelize-fixtures
Summary
This package contains type definitions for sequelize-fixtures (https://github.com/domasx2/sequelize-fixtures).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sequelize-fixtures.
index.d.ts
import * as Sequelize from "sequelize";
declare namespace SequelizeFixtures {
interface Options {
encoding?: string | undefined;
log?: ((message: string) => void) | undefined;
transaction?: Sequelize.Transaction | undefined;
transformFixtureDataFn?: ((data: any) => any) | undefined;
modifyFixtureDataFn?: ((data: any) => any) | undefined;
}
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>;
}
}
declare var sequelizeFixtures: SequelizeFixtures.SequelizeFixturesStatic;
export = sequelizeFixtures;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/sequelize
Credits
These definitions were written by Christian Schwarz.