mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Sequelize-Fixtures : Added modifyFixtureDataFn to Options interface (#20460)
* Added modifyFixtureDataFn to Options interface + test * Bumped version to current
This commit is contained in:
parent
20d9360ff1
commit
ba876ffd7c
5
types/sequelize-fixtures/index.d.ts
vendored
5
types/sequelize-fixtures/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for Sequelize-Fixtures 0.4.7
|
||||
// Type definitions for Sequelize-Fixtures 0.6.0
|
||||
// Project: https://github.com/domasx2/sequelize-fixtures
|
||||
// Definitions by: Christian Schwarz <https://github.com/cschwarz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@ -11,7 +11,8 @@ declare namespace SequelizeFixtures {
|
||||
encoding?: string,
|
||||
log?: (message: string) => void,
|
||||
transaction?: Sequelize.Transaction,
|
||||
transformFixtureDataFn?: (data: any) => any
|
||||
transformFixtureDataFn?: (data: any) => any,
|
||||
modifyFixtureDataFn?: (data: any) => any
|
||||
}
|
||||
|
||||
interface SequelizeFixturesStatic {
|
||||
|
||||
@ -17,3 +17,4 @@ sequelize.transaction(function (tx) {
|
||||
|
||||
SequelizeFixtures.loadFixtures([], {}).then(() => { });
|
||||
SequelizeFixtures.loadFixtures([], {}, { transformFixtureDataFn: (data) => { return data; } }).then(() => { });
|
||||
SequelizeFixtures.loadFixtures([], {}, { modifyFixtureDataFn: (data) => { return data; } }).then(() => { });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user