fix: fix types

This commit is contained in:
purocean
2025-01-02 17:11:56 +08:00
parent f823def342
commit 63f9a3cc21
+2 -2
View File
@@ -449,13 +449,13 @@ export async function deleteTmpFile (name: string): Promise<ApiResult<any>> {
* @param name
* @returns
*/
export async function listUserDir (name: string, recursive = false): Promise<ApiResult<{
export async function listUserDir (name: string, recursive = false): Promise<{
name: string,
path: string,
parent: string,
isFile: boolean,
isDir: boolean,
}[]>> {
}[]> {
const result = await fetchHttp(`/api/user-dir?name=${encodeURIComponent(name)}&recursive=${recursive}`)
return result.data
}