네트워크 알림 OFF 및 ts 오류 수정
This commit is contained in:
@@ -18,7 +18,8 @@ export const withRetry = async <T>(
|
||||
maxRetries = MAX_RETRY_COUNT,
|
||||
retryDelay = INITIAL_RETRY_DELAY,
|
||||
onRetry = () => {},
|
||||
shouldRetry = () => true
|
||||
shouldRetry = () => true,
|
||||
entityType
|
||||
} = options;
|
||||
|
||||
let lastError: Error | unknown;
|
||||
|
||||
@@ -32,4 +32,5 @@ export interface RetryOptions<T> {
|
||||
retryDelay?: number;
|
||||
onRetry?: (attempt: number, error: Error | unknown) => void;
|
||||
shouldRetry?: (error: Error | unknown) => boolean;
|
||||
entityType?: string; // 동기화 작업 유형 (예: '트랜잭션 업로드', '예산 다운로드' 등)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user