diff --git a/packages/frontend-core/src/api/types.ts b/packages/frontend-core/src/api/types.ts index ec6b604340..f083d14dd7 100644 --- a/packages/frontend-core/src/api/types.ts +++ b/packages/frontend-core/src/api/types.ts @@ -10,9 +10,9 @@ export enum HTTPMethod { export type APIClientConfig = { enableCaching?: boolean - attachHeaders?: Function - onError?: Function - onMigrationDetected?: Function + attachHeaders?: (headers: Record) => void + onError?: (error: any) => void + onMigrationDetected?: (migration: string) => void } export type APICallConfig = {