fix-docs: TS error when importing a function as a type only (example logged in user middleware) (#7073)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user