Skip to content

Commit

Permalink
Merge pull request #1593 from bvincent1/patch-1
Browse files Browse the repository at this point in the history
Update fetch.md to show async support
  • Loading branch information
mrlubos authored Jan 21, 2025
2 parents b463bbf + 8c1f534 commit c26e792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/openapi-ts/clients/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ Interceptors (middleware) can be used to modify requests before they're sent or
```js [use]
import { client } from 'client/sdk.gen';

client.interceptors.request.use((request) => {
// Supports async functions
client.interceptors.request.use(async (request) => {
// do something
return request;
});
Expand Down

0 comments on commit c26e792

Please sign in to comment.