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:
Vendored
+7
@@ -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[];
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user