Fix signature of listUserData (#601)

This commit is contained in:
Chenlei Hu
2024-08-22 20:26:23 -04:00
committed by GitHub
parent 233fd1347e
commit 57c5a78af3

View File

@@ -581,13 +581,13 @@ class ComfyApi extends EventTarget {
*/ */
async listUserData( async listUserData(
dir: string, dir: string,
recurse: true, recurse: boolean,
split?: boolean split?: true
): Promise<string[][]> ): Promise<string[][]>
async listUserData( async listUserData(
dir: string, dir: string,
recurse: false, recurse: boolean,
split?: boolean split?: false
): Promise<string[]> ): Promise<string[]>
async listUserData(dir, recurse, split) { async listUserData(dir, recurse, split) {
const resp = await this.fetchApi( const resp = await this.fetchApi(