Improve typing of API client callback functions
This commit is contained in:
parent
a7873caca8
commit
785938b78a
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue