@types/sequelize-fixtures
TypeScript icon, indicating that this package has built-in type declarations

0.6.6 • Public • Published

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

Credits

These definitions were written by Christian Schwarz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/sequelize-fixtures

Weekly Downloads

4,079

Version

0.6.6

License

MIT

Unpacked Size

4.46 kB

Total Files

5

Last publish

Collaborators

  • types