Skip to content

Commit

Permalink
types: improve onTransform types
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Nov 13, 2024
1 parent 14069ee commit 160e35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/axle/src/use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface UseAxleOptions<V = any, R = any, P = Record<string, any>> {
config?: AxleRequestConfig | (() => AxleRequestConfig)
onBefore?(refs: UseAxleRefs<V>): void
onAfter?(refs: UseAxleRefs<V>): void
onTransform?(response: R, refs: UseAxleRefs<V>): V
onTransform?(response: R, refs: UseAxleRefs<V>): V | Promise<V>
onSuccess?(response: R, refs: UseAxleRefs<V>): void
onError?(error: Error, refs: UseAxleRefs<V>): void
}
Expand Down

0 comments on commit 160e35d

Please sign in to comment.