This commit is contained in:
kakkokari-gtyih 2024-10-27 17:29:12 +09:00
parent 2340ef005d
commit 19408f489e
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints, P extends Miss
return promise;
});
export function promiseDialog<T extends Promise<unknown>>(
export function promiseDialog<T extends Promise<any>>(
promise: T,
onSuccess?: ((res: Awaited<T>) => void) | null,
onFailure?: ((err: Misskey.api.APIError) => void) | null,