mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed misc JSDoc types
- nothing crazy, but cleans up a few editor warnings
This commit is contained in:
parent
a5e7eb2208
commit
e3fa095c80
2 changed files with 4 additions and 4 deletions
|
@ -33,12 +33,12 @@ const mongoTransformer = flowRight(statusTransformer, rejectNonStatusTransformer
|
|||
|
||||
/**
|
||||
* @typedef {object} BaseOptions
|
||||
* @prop {import('knex').Transaction} transacting
|
||||
* @prop {import('knex').Knex.Transaction} transacting
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {object} ListOptions
|
||||
* @prop {import('knex').Transaction} transacting
|
||||
* @prop {import('knex').Knex.Transaction} transacting
|
||||
* @prop {string} filter
|
||||
*/
|
||||
|
||||
|
@ -56,7 +56,7 @@ class OfferBookshelfRepository {
|
|||
|
||||
/**
|
||||
* @template T
|
||||
* @param {(t: import('knex').Transaction) => Promise<T>} cb
|
||||
* @param {(t: import('knex').Knex.Transaction) => Promise<T>} cb
|
||||
* @returns {Promise<T>}
|
||||
*/
|
||||
async createTransaction(cb) {
|
||||
|
|
|
@ -102,7 +102,7 @@ module.exports = class TiersAPI {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {string} idString
|
||||
* @param {object} data
|
||||
* @returns {Promise<Tier>}
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue