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.
This commit is contained in:
Naz 2021-09-22 14:16:39 +02:00
parent 496b98b751
commit f13ee0e4fb

View File

@ -60,8 +60,8 @@ class ThemeStorage extends LocalFileStorage {
/** /**
* Rename a file / folder * Rename a file / folder
* *
* * @param {String} srcName
* @param String fileName * @param {String} destName
*/ */
rename(srcName, destName) { rename(srcName, destName) {
let src = path.join(this.getTargetDir(), srcName); 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<void>}
*/ */
delete(fileName) { delete(fileName) {
return fs.remove(path.join(this.getTargetDir(), fileName)); return fs.remove(path.join(this.getTargetDir(), fileName));