lint
This commit is contained in:
parent
21bfddf755
commit
2340ef005d
|
@ -93,12 +93,9 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints, P extends Miss
|
||||||
return promise;
|
return promise;
|
||||||
});
|
});
|
||||||
|
|
||||||
export function promiseDialog<
|
export function promiseDialog<T extends Promise<unknown>>(
|
||||||
P extends unknown,
|
|
||||||
T extends Promise<P>,
|
|
||||||
>(
|
|
||||||
promise: T,
|
promise: T,
|
||||||
onSuccess?: ((res: P) => void) | null,
|
onSuccess?: ((res: Awaited<T>) => void) | null,
|
||||||
onFailure?: ((err: Misskey.api.APIError) => void) | null,
|
onFailure?: ((err: Misskey.api.APIError) => void) | null,
|
||||||
text?: string,
|
text?: string,
|
||||||
): T {
|
): T {
|
||||||
|
|
Loading…
Reference in New Issue