mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed types for migration utils (#14709)
`import('knex')` does not refer to the type of an instantiated Knex instance.
This commit is contained in:
parent
51498abb5c
commit
e65d335c76
1 changed files with 6 additions and 6 deletions
|
@ -274,8 +274,8 @@ function addPermissionWithRoles(config, roles) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {(connection: import('knex')) => Promise<void>} up
|
||||
* @param {(connection: import('knex')) => Promise<void>} down
|
||||
* @param {(connection: import('knex').Knex) => Promise<void>} up
|
||||
* @param {(connection: import('knex').Knex) => Promise<void>} down
|
||||
*
|
||||
* @returns {Migration}
|
||||
*/
|
||||
|
@ -294,7 +294,7 @@ function createNonTransactionalMigration(up, down) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {(connection: import('knex')) => Promise<void>} up
|
||||
* @param {(connection: import('knex').Knex) => Promise<void>} up
|
||||
*
|
||||
* @returns {Migration}
|
||||
*/
|
||||
|
@ -313,8 +313,8 @@ function createIrreversibleMigration(up) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {(connection: import('knex')) => Promise<void>} up
|
||||
* @param {(connection: import('knex')) => Promise<void>} down
|
||||
* @param {(connection: import('knex').Knex) => Promise<void>} up
|
||||
* @param {(connection: import('knex').Knex) => Promise<void>} down
|
||||
*
|
||||
* @returns {Migration}
|
||||
*/
|
||||
|
@ -601,7 +601,7 @@ module.exports = {
|
|||
/**
|
||||
* @typedef {Object} TransactionalMigrationFunctionOptions
|
||||
*
|
||||
* @prop {import('knex')} transacting
|
||||
* @prop {import('knex').Knex} transacting
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue