mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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
|
* @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) {
|
||||||
|
|
|
@ -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>}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue