diff --git a/src/renderer/src/components/ui/markdown/components/Toc.tsx b/src/renderer/src/components/ui/markdown/components/Toc.tsx index ca4161c02..0551415c2 100644 --- a/src/renderer/src/components/ui/markdown/components/Toc.tsx +++ b/src/renderer/src/components/ui/markdown/components/Toc.tsx @@ -26,7 +26,7 @@ import { MarkdownRenderContainerRefContext } from "../context" import type { TocItemProps } from "./TocItem" import { TocItem } from "./TocItem" -type DebouncedFuncLeading any> = T & { +type DebouncedFuncLeading any> = T & { cancel: () => void flush: () => void } @@ -218,7 +218,7 @@ export const Toc: Component = ({ className }) => { {toc.map((heading, index) => ( { > {toc.map((heading, index) => (