UNPKG

alinea

Version:
18 lines (17 loc) 343 B
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; };