Fixed misc JSDoc types

- nothing crazy, but cleans up a few editor warnings
This commit is contained in:
Daniel Lockyer 2024-05-13 14:45:03 +02:00 committed by Daniel Lockyer
parent a5e7eb2208
commit e3fa095c80
2 changed files with 4 additions and 4 deletions

View File

@ -33,12 +33,12 @@ const mongoTransformer = flowRight(statusTransformer, rejectNonStatusTransformer
/** /**
* @typedef {object} BaseOptions * @typedef {object} BaseOptions
* @prop {import('knex').Transaction} transacting * @prop {import('knex').Knex.Transaction} transacting
*/ */
/** /**
* @typedef {object} ListOptions * @typedef {object} ListOptions
* @prop {import('knex').Transaction} transacting * @prop {import('knex').Knex.Transaction} transacting
* @prop {string} filter * @prop {string} filter
*/ */
@ -56,7 +56,7 @@ class OfferBookshelfRepository {
/** /**
* @template T * @template T
* @param {(t: import('knex').Transaction) => Promise<T>} cb * @param {(t: import('knex').Knex.Transaction) => Promise<T>} cb
* @returns {Promise<T>} * @returns {Promise<T>}
*/ */
async createTransaction(cb) { async createTransaction(cb) {

View File

@ -102,7 +102,7 @@ module.exports = class TiersAPI {
} }
/** /**
* @param {string} id * @param {string} idString
* @param {object} data * @param {object} data
* @returns {Promise<Tier>} * @returns {Promise<Tier>}
*/ */