mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			738 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			738 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import "ckeditor5";
 | 
						|
 | 
						|
declare global {
 | 
						|
    interface Component {
 | 
						|
        triggerCommand(command: string): void;
 | 
						|
    }
 | 
						|
 | 
						|
    interface EditorComponent extends Component {
 | 
						|
        loadReferenceLinkTitle($el: JQuery<HTMLElement>, href: string): Promise<void>;
 | 
						|
        createNoteForReferenceLink(title: string): Promise<string>;
 | 
						|
        loadIncludedNote(noteId: string, $el: JQuery<HTMLElement>): void;
 | 
						|
    }
 | 
						|
 | 
						|
    var glob: {
 | 
						|
        getComponentByEl<T extends Component>(el: unknown): T;
 | 
						|
        getActiveContextNote(): {
 | 
						|
            noteId: string;
 | 
						|
        };
 | 
						|
        getHeaders(): Promise<Record<string, string>>;
 | 
						|
        getReferenceLinkTitle(href: string): Promise<string>;
 | 
						|
        getReferenceLinkTitleSync(href: string): string;
 | 
						|
    }
 | 
						|
}
 |