alinea
Version:
Headless git-based CMS
18 lines (17 loc) • 343 B
TypeScript
export declare class IndexEvent extends Event {
data: IndexOp;
static readonly type = "index";
constructor(data: IndexOp);
}
export type IndexOp = {
op: 'index';
sha: string;
} | {
op: 'entry';
id: string;
} | {
op: 'mutate';
id: string;
status: 'pending' | 'success' | 'failure';
error?: Error;
};