feat(types): add FoliateTocItem interface for foliate-js TOC entries

Add a typed interface for the tocItem data returned by foliate-js
relocate events, replacing untyped usage in the reader progress display.
This commit is contained in:
2026-04-25 13:39:07 -04:00
parent 2a1ff77173
commit f24e354549
+7
View File
@@ -254,3 +254,10 @@ interface ProgressDisplay {
label?: string;
time_left?: string;
}
interface FoliateTocItem {
id: number;
label: string;
href: string;
subitems?: FoliateTocItem[];
}