Skip to content

Commit 541e791

Browse files
authored
chore(medusa): fix typo (#12907)
1 parent 1ee146e commit 541e791

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/medusa/src/loaders/admin.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type Options = {
1515
plugins: PluginDetails[]
1616
}
1717

18-
type IntializedOptions = Required<Pick<AdminOptions, "path" | "disable">> &
18+
type InitializedOptions = Required<Pick<AdminOptions, "path" | "disable">> &
1919
AdminOptions & {
2020
outDir: string
2121
sources?: string[]
@@ -46,7 +46,7 @@ export default async function adminLoader({
4646
}
4747
}
4848

49-
const adminOptions: IntializedOptions = {
49+
const adminOptions: InitializedOptions = {
5050
disable: false,
5151
sources,
5252
plugins: pluginAdminPaths,
@@ -73,15 +73,18 @@ export default async function adminLoader({
7373
return serveProductionBuild(app, adminOptions)
7474
}
7575

76-
async function initDevelopmentServer(app: Express, options: IntializedOptions) {
76+
async function initDevelopmentServer(
77+
app: Express,
78+
options: InitializedOptions
79+
) {
7780
const { develop } = await import("@medusajs/admin-bundler")
7881

7982
const adminMiddleware = await develop(options)
8083
app.use(options.path, adminMiddleware)
8184
return app
8285
}
8386

84-
async function serveProductionBuild(app: Express, options: IntializedOptions) {
87+
async function serveProductionBuild(app: Express, options: InitializedOptions) {
8588
const { serve } = await import("@medusajs/admin-bundler")
8689

8790
const adminRoute = await serve(options)

0 commit comments

Comments
 (0)