Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Update filter type to allow synchronous filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuhei Kagawa committed Jan 27, 2020
1 parent 7b97879 commit b9f98ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,17 @@ export interface ServiceClientRequestFilter {
*/
request?: (
requestOptions: ServiceClientRequestOptions
) => Promise<ServiceClientResponse | ServiceClientRequestOptions>;
) =>
| ServiceClientResponse
| ServiceClientRequestOptions
| Promise<ServiceClientResponse | ServiceClientRequestOptions>;
/**
* This callback is called after the response has arrived.
* @throws {Error}
*/
response?: (
response: ServiceClientResponse
) => Promise<ServiceClientResponse>;
) => ServiceClientResponse | Promise<ServiceClientResponse>;
}

/**
Expand Down

0 comments on commit b9f98ab

Please sign in to comment.