Type onError

This commit is contained in:
Adria Navarro 2025-01-09 12:12:43 +01:00
parent 1b6dc51f01
commit 59bdd20158
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export type Headers = Record<string, string>
export type APIClientConfig = {
enableCaching?: boolean
attachHeaders?: (headers: Headers) => void
onError?: (error: any) => void
onError?: (error: APIError) => void
onMigrationDetected?: (migration: string) => void
}