mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: fix types
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user