mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			653 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			653 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import FNote from "../../entities/fnote";
 | 
						|
 | 
						|
export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board", "presentation"] as const;
 | 
						|
export type ViewTypeOptions = typeof allViewTypes[number];
 | 
						|
 | 
						|
export type ViewModeMedia = "screen" | "print";
 | 
						|
 | 
						|
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;
 | 
						|
    media: ViewModeMedia;
 | 
						|
    onReady(): void;
 | 
						|
}
 |