mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
19 lines
667 B
TypeScript
19 lines
667 B
TypeScript
import FNote from "../../entities/fnote";
|
|
import type { ViewModeArgs } from "../view_widgets/view_mode";
|
|
|
|
export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board"] as const;
|
|
export type ArgsWithoutNoteId = Omit<ViewModeArgs, "noteIds">;
|
|
export type ViewTypeOptions = typeof allViewTypes[number];
|
|
|
|
export interface ViewModeProps<T extends object> {
|
|
note: FNote;
|
|
notePath: string;
|
|
/**
|
|
* We're using noteIds so that it's not necessary to load all notes at once when paging.
|
|
*/
|
|
noteIds: string[];
|
|
highlightedTokens: string[] | null | undefined;
|
|
viewConfig: T | undefined;
|
|
saveConfig(newConfig: T): void;
|
|
}
|