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

This commit is contained in:
adil
2024-04-23 09:49:09 +02:00
committed by GitHub
parent ef29981a54
commit 3ee29f0878

View File

@@ -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:
```ts title="src/api/middlewares.ts"
import type {
import {
authenticate,
MiddlewaresConfig,
User,
UserService,
type MiddlewaresConfig,
type User,
type UserService,
} from "@medusajs/medusa"
import type {
MedusaNextFunction,