Improve typing of API client callback functions

This commit is contained in:
Andrew Kingston 2024-11-26 10:37:01 +00:00
parent a7873caca8
commit 785938b78a
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ export enum HTTPMethod {
export type APIClientConfig = {
enableCaching?: boolean
attachHeaders?: Function
onError?: Function
onMigrationDetected?: Function
attachHeaders?: (headers: Record<string, string>) => void
onError?: (error: any) => void
onMigrationDetected?: (migration: string) => void
}
export type APICallConfig = {