mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
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:
parent
496b98b751
commit
f13ee0e4fb
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user