From 7a1389954ba14ca84451a744fc9b3a853a3c14a6 Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 14 Oct 2022 11:30:23 +0800 Subject: [PATCH] Updated JSDoc and fixed typos --- ghost/core/core/server/services/url/UrlGenerator.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghost/core/core/server/services/url/UrlGenerator.js b/ghost/core/core/server/services/url/UrlGenerator.js index fc60f7097d..8d95dc86c0 100644 --- a/ghost/core/core/server/services/url/UrlGenerator.js +++ b/ghost/core/core/server/services/url/UrlGenerator.js @@ -135,7 +135,9 @@ class UrlGenerator { /** * @description Listener which get's called when a resource was added on runtime. - * @param {String} event + * @param {Object} event + * @param {String} event.type + * @param {String} event.id * @private */ _onAdded(event) { @@ -188,7 +190,7 @@ class UrlGenerator { } /** - * @description Generate url based on the permlink configuration of the target router. + * @description Generate url based on the permalink configuration of the target router. * * @NOTE We currently generate relative urls (https://github.com/TryGhost/Ghost/commit/7b0d5d465ba41073db0c3c72006da625fa11df32). */