fix-docs: TS error when importing a function as a type only (example logged in user middleware) (#7073)
This commit is contained in:
1 file changed
+4
-4
@@ -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:
|
Create the file `src/api/middlewares.ts` with the following content:
|
||||||
|
|
||||||
```ts title="src/api/middlewares.ts"
|
```ts title="src/api/middlewares.ts"
|
||||||
import type {
|
import {
|
||||||
authenticate,
|
authenticate,
|
||||||
MiddlewaresConfig,
|
type MiddlewaresConfig,
|
||||||
User,
|
type User,
|
||||||
UserService,
|
type UserService,
|
||||||
} from "@medusajs/medusa"
|
} from "@medusajs/medusa"
|
||||||
import type {
|
import type {
|
||||||
MedusaNextFunction,
|
MedusaNextFunction,
|
||||||
|
|||||||
Reference in new issue
Block a user