From e3fa095c807ebeefeef7bfce76f70388ad0bb732 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 13 May 2024 14:45:03 +0200 Subject: [PATCH] Fixed misc JSDoc types - nothing crazy, but cleans up a few editor warnings --- .../core/server/services/offers/OfferBookshelfRepository.js | 6 +++--- ghost/tiers/lib/TiersAPI.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ghost/core/core/server/services/offers/OfferBookshelfRepository.js b/ghost/core/core/server/services/offers/OfferBookshelfRepository.js index 3d66e17934..72b57fdc63 100644 --- a/ghost/core/core/server/services/offers/OfferBookshelfRepository.js +++ b/ghost/core/core/server/services/offers/OfferBookshelfRepository.js @@ -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} cb + * @param {(t: import('knex').Knex.Transaction) => Promise} cb * @returns {Promise} */ async createTransaction(cb) { diff --git a/ghost/tiers/lib/TiersAPI.js b/ghost/tiers/lib/TiersAPI.js index 48daaca51f..30848f6977 100644 --- a/ghost/tiers/lib/TiersAPI.js +++ b/ghost/tiers/lib/TiersAPI.js @@ -102,7 +102,7 @@ module.exports = class TiersAPI { } /** - * @param {string} id + * @param {string} idString * @param {object} data * @returns {Promise} */