mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Improved JSDocs in limit package
no issue - There were a few errors and little inconsistencies that needed a cleanup
This commit is contained in:
parent
aef6c19933
commit
9c695a363c
@ -46,8 +46,8 @@ class MaxLimit extends Limit {
|
||||
* @param {Number} options.config.max - maximum limit the limit would check against
|
||||
* @param {Function} options.config.currentCountQuery - query checking the state that would be compared against the limit
|
||||
* @param {String} [options.config.error] - error message to use when limit is reached
|
||||
* @param {String} options.helpLink - URL to the resource explaining how the limit works
|
||||
* @param {Object} options.db - instance of knex db connection that currentCountQuery can use to run state check through
|
||||
* @param {String} [options.helpLink] - URL to the resource explaining how the limit works
|
||||
* @param {Object} [options.db] - instance of knex db connection that currentCountQuery can use to run state check through
|
||||
* @param {Object} options.errors - instance of errors compatible with Ghost-Ignition's errors (https://github.com/TryGhost/Ignition#errors)
|
||||
*/
|
||||
constructor({name, config, helpLink, db, errors}) {
|
||||
@ -136,7 +136,7 @@ class MaxPeriodicLimit extends Limit {
|
||||
* @param {('month')} options.config.interval - an interval to take into account when checking the limit. Currently only supports 'month' value
|
||||
* @param {String} options.config.startDate - start date in ISO 8601 format (https://en.wikipedia.org/wiki/ISO_8601), used to calculate period intervals
|
||||
* @param {String} options.helpLink - URL to the resource explaining how the limit works
|
||||
* @param {Object} options.db - instance of knex db connection that currentCountQuery can use to run state check through
|
||||
* @param {Object} [options.db] - instance of knex db connection that currentCountQuery can use to run state check through
|
||||
* @param {Object} options.errors - instance of errors compatible with Ghost-Ignition's errors (https://github.com/TryGhost/Ignition#errors)
|
||||
*/
|
||||
constructor({name, config, helpLink, db, errors}) {
|
||||
@ -238,7 +238,7 @@ class FlagLimit extends Limit {
|
||||
* @param {Number} options.config.disabled - disabled/enabled flag for the limit
|
||||
* @param {String} options.config.error - error message to use when limit is reached
|
||||
* @param {String} options.helpLink - URL to the resource explaining how the limit works
|
||||
* @param {Object} options.db - instance of knex db connection that currentCountQuery can use to run state check through
|
||||
* @param {Object} [options.db] - instance of knex db connection that currentCountQuery can use to run state check through
|
||||
* @param {Object} options.errors - instance of errors compatible with Ghost-Ignition's errors (https://github.com/TryGhost/Ignition#errors)
|
||||
*/
|
||||
constructor({name, config, helpLink, db, errors}) {
|
||||
|
Loading…
Reference in New Issue
Block a user