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 7cd88b6107
commit d400377474
+7
View File
@@ -254,3 +254,10 @@ interface ProgressDisplay {
label?: string; label?: string;
time_left?: string; time_left?: string;
} }
interface FoliateTocItem {
id: number;
label: string;
href: string;
subitems?: FoliateTocItem[];
}