添加quickcomposer声明文件

This commit is contained in:
fofolee
2025-01-25 14:47:21 +08:00
parent 1d9a675803
commit 2dce359244
5 changed files with 2485 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ const string = {
},
// 大小写转换
case: function (text, mode = "upper") {
changeCase: function (text, mode = "upper") {
switch (mode) {
case "upper":
return text.toUpperCase();

View File

@@ -84,7 +84,7 @@ async function write(config) {
/**
* 文件删除操作
*/
async function delete_(config) {
async function remove(config) {
const { filePath, recursive, force, targetType } = config;
// 检查文件是否存在
@@ -338,7 +338,7 @@ async function operation(config) {
case "stat":
return await stat(config);
case "delete":
return await delete_(config);
return await remove(config);
case "manage":
return await manage(config);
default:
@@ -351,7 +351,7 @@ module.exports = {
write,
list,
stat,
delete: delete_,
remove,
manage,
operation,
};