Skip to content

Commit 76923c6

Browse files
21Chaniclaude
andcommitted
fix: replace any types with proper imports in serveRawMarkdown
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5294478 commit 76923c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { defineConfig } from "@solidjs/start/config";
22

33
import { createWithSolidBase, defineTheme } from "@kobalte/solidbase/config";
44

5+
import type { ViteDevServer } from "vite";
6+
import type { IncomingMessage, ServerResponse } from "node:http";
7+
58
import tree from "./.solid/tree";
69
import entries from "./.solid/flat-entries";
710
import solidstartEntries from "./.solid/solid-start-flat-entries";
@@ -168,8 +171,8 @@ function serveRawMarkdown() {
168171

169172
return {
170173
name: "serve-raw-markdown",
171-
configureServer(server: any) {
172-
server.middlewares.use((req: any, res: any, next: any) => {
174+
configureServer(server: ViteDevServer) {
175+
server.middlewares.use((req: IncomingMessage, res: ServerResponse, next: () => void) => {
173176
if (!req.url?.endsWith(".md")) return next();
174177
const mdxPath = join(srcDir, req.url.replace(/\.md$/, ".mdx"));
175178
try {

0 commit comments

Comments
 (0)