mirror of
https://github.com/quartz-community/folder-page.git
synced 2026-07-22 02:50:24 +00:00
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:
parent
1c2dce604c
commit
0bee9810de
4 changed files with 372 additions and 302 deletions
2
dist/components/index.js.map
vendored
2
dist/components/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
668
package-lock.json
generated
668
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue