diff --git a/packages/axle/src/use.ts b/packages/axle/src/use.ts index 6eae974..7401e03 100644 --- a/packages/axle/src/use.ts +++ b/packages/axle/src/use.ts @@ -31,7 +31,7 @@ export interface UseAxleOptions> { config?: AxleRequestConfig | (() => AxleRequestConfig) onBefore?(refs: UseAxleRefs): void onAfter?(refs: UseAxleRefs): void - onTransform?(response: R, refs: UseAxleRefs): V + onTransform?(response: R, refs: UseAxleRefs): V | Promise onSuccess?(response: R, refs: UseAxleRefs): void onError?(error: Error, refs: UseAxleRefs): void }