Skip to content

Commit c26e792

Browse files
authored
Merge pull request #1593 from bvincent1/patch-1
Update fetch.md to show async support
2 parents b463bbf + 8c1f534 commit c26e792

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/openapi-ts/clients/fetch.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ Interceptors (middleware) can be used to modify requests before they're sent or
9595
```js [use]
9696
import { client } from 'client/sdk.gen';
9797

98-
client.interceptors.request.use((request) => {
98+
// Supports async functions
99+
client.interceptors.request.use(async (request) => {
99100
// do something
100101
return request;
101102
});

0 commit comments

Comments
 (0)