네트워크 알림 OFF 및 ts 오류 수정

This commit is contained in:
hansoo
2025-03-21 17:09:26 +09:00
parent 3d246176ad
commit b3cc189493
6 changed files with 30 additions and 155 deletions

View File

@@ -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;

View File

@@ -32,4 +32,5 @@ export interface RetryOptions<T> {
retryDelay?: number;
onRetry?: (attempt: number, error: Error | unknown) => void;
shouldRetry?: (error: Error | unknown) => boolean;
entityType?: string; // 동기화 작업 유형 (예: '트랜잭션 업로드', '예산 다운로드' 등)
}