refactor(book/table): fix some lack of generics

This commit is contained in:
Elian Doran 2025-06-25 18:30:44 +03:00
parent c9b556160f
commit dd379bf18d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ export type ViewTypeOptions = "list" | "grid" | "calendar" | "table";
export default class NoteListRenderer {
private viewType: ViewTypeOptions;
public viewMode: ViewMode | null;
public viewMode: ViewMode<any> | null;
constructor($parent: JQuery<HTMLElement>, parentNote: FNote, noteIds: string[], showNotePath: boolean = false) {
this.viewType = this.#getViewType(parentNote);

View File

@ -36,7 +36,7 @@ export default class NoteListWidget extends NoteContextAwareWidget {
private isIntersecting?: boolean;
private noteIdRefreshed?: string;
private shownNoteId?: string | null;
private viewMode?: ViewMode | null;
private viewMode?: ViewMode<any> | null;
isEnabled() {
return super.isEnabled() && this.noteContext?.hasNoteList();