Skip to content

Commit

Permalink
fix: update other interceptor response types
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 23, 2022
1 parent c442766 commit 3ac4fe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export interface FetchOptions<R extends ResponseType = ResponseType> extends Omi
retry?: number | false

onRequest?(ctx: FetchContext): Promise<void> | void
onRequestError?(ctx: FetchContext & { error: Error }): Promise<void>
onResponse?(ctx: FetchContext & { response: FetchResponse<R> }): Promise<void>
onResponseError?(ctx: FetchContext & { response: FetchResponse<R> }): Promise<void>
onRequestError?(ctx: FetchContext & { error: Error }): Promise<void> | void
onResponse?(ctx: FetchContext & { response: FetchResponse<R> }): Promise<void> | void
onResponseError?(ctx: FetchContext & { response: FetchResponse<R> }): Promise<void> | void
}

export interface $Fetch {
Expand Down

0 comments on commit 3ac4fe9

Please sign in to comment.