Fixed logged-in-user.mdx example (#7132)
Previous documentation stuffed type imports with regular imports. This was fine, but either remove the unnecessary 'type' in the first import statement or import like this PR.
This commit is contained in:
@@ -25,14 +25,14 @@ Create the file `src/api/middlewares.ts` with the following content:
|
||||
```ts title="src/api/middlewares.ts"
|
||||
import {
|
||||
authenticate,
|
||||
type MiddlewaresConfig,
|
||||
type User,
|
||||
type UserService,
|
||||
} from "@medusajs/medusa"
|
||||
import type {
|
||||
MedusaNextFunction,
|
||||
MedusaRequest,
|
||||
MedusaResponse,
|
||||
MiddlewaresConfig,
|
||||
User,
|
||||
UserService,
|
||||
} from "@medusajs/medusa"
|
||||
|
||||
const registerLoggedInUser = async (
|
||||
|
||||
Reference in New Issue
Block a user