From f13ee0e4fb606ee4277af7deeec668ae016836c2 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 22 Sep 2021 14:16:39 +0200 Subject: [PATCH] Corrected type declarations in ThemeStorage refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings - Type declarations were incorrect, co changed them to something more suitable based on the implementation to reduce the error output. --- core/server/services/themes/ThemeStorage.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/server/services/themes/ThemeStorage.js b/core/server/services/themes/ThemeStorage.js index 3d599af7ae..8a78125bcc 100644 --- a/core/server/services/themes/ThemeStorage.js +++ b/core/server/services/themes/ThemeStorage.js @@ -60,8 +60,8 @@ class ThemeStorage extends LocalFileStorage { /** * Rename a file / folder * - * - * @param String fileName + * @param {String} srcName + * @param {String} destName */ rename(srcName, destName) { let src = path.join(this.getTargetDir(), srcName); @@ -71,9 +71,10 @@ class ThemeStorage extends LocalFileStorage { } /** - * Rename a file / folder + * Remove a file / folder * - * @param String backupName + * @param {String} fileName + * @returns {Promise} */ delete(fileName) { return fs.remove(path.join(this.getTargetDir(), fileName));