1
0
silverbullet/packages/web/app_event.ts

22 lines
386 B
TypeScript
Raw Normal View History

import type { ParseTree } from "@silverbulletmd/common/tree";
export type AppEvent = "page:click" | "page:complete" | "page:load";
export type ClickEvent = {
2022-03-28 13:25:05 +00:00
page: string;
pos: number;
metaKey: boolean;
ctrlKey: boolean;
altKey: boolean;
};
export type IndexEvent = {
name: string;
text: string;
};
export type IndexTreeEvent = {
name: string;
tree: ParseTree;
};