From e6a5d2716156210e8f335bf5708bfd9d8c896e44 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Fri, 3 Apr 2026 16:18:30 +0200 Subject: [PATCH] fix: remove PageData interface causing DTS build failures --- src/components/PageList.tsx | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/src/components/PageList.tsx b/src/components/PageList.tsx index ff6791c..efc1ef9 100644 --- a/src/components/PageList.tsx +++ b/src/components/PageList.tsx @@ -1,24 +1,8 @@ -import type { - QuartzComponent, - QuartzComponentProps, - QuartzPluginData, - SortFn, -} from "@quartz-community/types"; +import type { QuartzComponent, QuartzComponentProps, SortFn } from "@quartz-community/types"; import { getDate, byDateAndAlphabetical } from "@quartz-community/utils/sort"; import { resolveRelative, isFolderPath } from "../util/path"; import type { FullSlug } from "../util/path"; -interface PageData extends QuartzPluginData { - slug?: string; - frontmatter?: { title?: string; tags?: string[] }; - dates?: { - created: Date; - modified: Date; - published: Date; - }; - [key: string]: unknown; -} - export type { SortFn } from "@quartz-community/types"; export { byDateAndAlphabetical }; @@ -72,7 +56,7 @@ export const PageList: QuartzComponent = ({ sort, }: PageListProps) => { const sorter = sort ?? byDateAndAlphabeticalFolderFirst(cfg); - let list = [...(allFiles as PageData[])].sort(sorter); + let list = [...allFiles].sort(sorter); if (limit) { list = list.slice(0, limit); } @@ -83,7 +67,7 @@ export const PageList: QuartzComponent = ({