fix: cast PageEntry[] to QuartzComponentProps allFiles shape for branded FullSlug

Updated @quartz-community/types made slug a branded FullSlug type;
the local PageEntry uses an unbranded string slug. Cast at the
listProps boundary so DTS build succeeds without changing runtime
behaviour.
This commit is contained in:
saberzero1 2026-04-16 13:33:35 +02:00
parent 1c2dce604c
commit 0bee9810de
No known key found for this signature in database
4 changed files with 372 additions and 302 deletions

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

668
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -178,7 +178,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
const listProps = {
...props,
sort: options.sort,
allFiles: allPagesInFolder,
allFiles: allPagesInFolder as unknown as QuartzComponentProps["allFiles"],
};
const hastRoot = tree as Root;