11 lines
251 B
TypeScript
11 lines
251 B
TypeScript
import { EventEmitter } from "stream";
|
|
import { Claim } from "./utils/claims";
|
|
|
|
export type ChangeEvent = {
|
|
type: "insert" | "update" | "delete";
|
|
collection: "permits" | "orgs";
|
|
document?: Object;
|
|
};
|
|
|
|
export const dbEvents = new EventEmitter();
|