Files
plainleaf/plug-api/types/event.ts
T
Zef HemelandGitHub a524c64884 Go backend (#1555)
* Replaces old Deno server with a Go implementation
* Restructured the code base accordingly
2025-09-19 13:23:20 +02:00

26 lines
556 B
TypeScript

import type { ParseTree } from "@silverbulletmd/silverbullet/lib/tree";
import type { EventSubscriptionDef } from "../../lib/manifest.ts";
export type IndexTreeEvent = {
name: string;
tree: ParseTree;
};
export type PageCreatingEvent = {
name: string;
};
export type PageCreatingContent = {
text: string;
perm: "ro" | "rw";
};
export type EventSubscription = EventSubscriptionDef & {
run: (...args: any[]) => Promise<any>;
};
export type ResolvedPlug = {
code: string;
name?: string; // This will only dictate the filename
} | string;