From e7c85e569ba1d7e88d8f6ab0bb49694777f29be0 Mon Sep 17 00:00:00 2001 From: Stephen Hu Date: Thu, 12 Jun 2025 14:20:15 +0800 Subject: [PATCH] Fix: Improve TS Warning For http_api_reference.md (#8172) ### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/8157 The current master code should work fine, but hI ave some warnings, so I added a declare to improve the warning ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/custom.d.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 web/src/custom.d.ts diff --git a/web/src/custom.d.ts b/web/src/custom.d.ts new file mode 100644 index 000000000..f73d61b39 --- /dev/null +++ b/web/src/custom.d.ts @@ -0,0 +1,4 @@ +declare module '*.md' { + const content: string; + export default content; +}