From 342712b8ab68598e9eef11cec89d2e8412602945 Mon Sep 17 00:00:00 2001 From: Dan Vaynshteyn Date: Fri, 26 Apr 2024 03:05:52 -0500 Subject: [PATCH] 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. --- .../development/api-routes/example-logged-in-user.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/apps/docs/content/development/api-routes/example-logged-in-user.mdx b/www/apps/docs/content/development/api-routes/example-logged-in-user.mdx index aec7688ad3..b8e430e403 100644 --- a/www/apps/docs/content/development/api-routes/example-logged-in-user.mdx +++ b/www/apps/docs/content/development/api-routes/example-logged-in-user.mdx @@ -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 (