Skip to content

Commit 306575c

Browse files
authored
Fix: add missing Middleware import in middleware-auth docs (#2490)
1 parent 0295362 commit 306575c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/openapi-fetch/middleware-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Each middleware can provide `onRequest()`, `onResponse()` and `onError` callback
1313
::: code-group
1414

1515
```ts [src/my-project.ts]
16-
import createClient from "openapi-fetch";
16+
import createClient, { Middleware } from "openapi-fetch";
1717
import type { paths } from "./my-openapi-3-schema"; // generated by openapi-typescript
1818

1919
const myMiddleware: Middleware = {

0 commit comments

Comments
 (0)