From a66f5e4971b69017d0cea6513f4ec36c10224c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 4 Jan 2025 13:03:29 +0800 Subject: [PATCH] fix --- src/common/cancel-task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cancel-task.ts b/src/common/cancel-task.ts index 315a151f1..9d3de6527 100644 --- a/src/common/cancel-task.ts +++ b/src/common/cancel-task.ts @@ -1,4 +1,4 @@ -type TaskExecutor = (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void, onCancel: (callback: () => void) => void) => void; +export type TaskExecutor = (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void, onCancel: (callback: () => void) => void) => void; export class CancelableTask { private promise: Promise;