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 = {
|
export type APIClientConfig = {
|
||||||
enableCaching?: boolean
|
enableCaching?: boolean
|
||||||
attachHeaders?: Function
|
attachHeaders?: (headers: Record<string, string>) => void
|
||||||
onError?: Function
|
onError?: (error: any) => void
|
||||||
onMigrationDetected?: Function
|
onMigrationDetected?: (migration: string) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
export type APICallConfig = {
|
export type APICallConfig = {
|
||||||
|
|
Loading…
Reference in New Issue