0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added JSDoc to notifications service's constructor

refs https://github.com/TryGhost/Team/issues/564
refs https://github.com/TryGhost/Ghost/issues/10236
This commit is contained in:
Naz 2021-03-23 15:22:14 +13:00
parent e00f8633ef
commit 265026d73d

View file

@ -6,6 +6,14 @@ const errors = require('@tryghost/errors');
const ObjectId = require('bson-objectid'); const ObjectId = require('bson-objectid');
class Notifications { class Notifications {
/**
*
* @param {Object} options
* @param {Object} options.settingsCache - settings cache instance
* @param {Object} options.i18n - i18n instance
* @param {Object} options.ghostVersion
* @param {String} options.ghostVersion.full - Ghost instance version in "full" format - major.minor.patch
*/
constructor({settingsCache, i18n, ghostVersion}) { constructor({settingsCache, i18n, ghostVersion}) {
this.settingsCache = settingsCache; this.settingsCache = settingsCache;
this.i18n = i18n; this.i18n = i18n;