fix-docs: TS error when importing a function as a type only (example logged in user middleware) (#7073)

This commit is contained in:
adil authored and GitHub committed 2024-04-23 07:49:09 +00:00
1 parent ef29981a54
commit 3ee29f0878
1 file changed
+4 -4
@@ -23,11 +23,11 @@ Learn more about [middlewares in its guide](./add-middleware.mdx).
Create the file `src/api/middlewares.ts` with the following content: Create the file `src/api/middlewares.ts` with the following content:
```ts title="src/api/middlewares.ts" ```ts title="src/api/middlewares.ts"
import type { import {
authenticate, authenticate,
MiddlewaresConfig, type MiddlewaresConfig,
User, type User,
UserService, type UserService,
} from "@medusajs/medusa" } from "@medusajs/medusa"
import type { import type {
MedusaNextFunction, MedusaNextFunction,