From 265026d73d07cd52c55719c094cfc3561be76802 Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 23 Mar 2021 15:22:14 +1300 Subject: [PATCH] Added JSDoc to notifications service's constructor refs https://github.com/TryGhost/Team/issues/564 refs https://github.com/TryGhost/Ghost/issues/10236 --- core/server/services/notifications/notifications.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/server/services/notifications/notifications.js b/core/server/services/notifications/notifications.js index bd494e3c52..d14c1756e8 100644 --- a/core/server/services/notifications/notifications.js +++ b/core/server/services/notifications/notifications.js @@ -6,6 +6,14 @@ const errors = require('@tryghost/errors'); const ObjectId = require('bson-objectid'); 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}) { this.settingsCache = settingsCache; this.i18n = i18n;