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:
Dan Vaynshteyn
2024-04-26 08:05:52 +00:00
committed by GitHub
parent f03a822253
commit 342712b8ab
@@ -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 (