sourcebot/packages/backend/src/posthogEvents.ts

21 lines
471 B
TypeScript
Raw Normal View History

2024-11-10 00:40:07 +00:00
/* eslint-disable @typescript-eslint/no-empty-object-type */
export type PosthogEventMap = {
repo_created: {
vcs: string;
codeHost?: string;
},
repo_synced: {
vcs: string;
codeHost?: string;
fetchDuration_s?: number;
cloneDuration_s?: number;
indexDuration_s?: number;
},
repo_deleted: {
vcs: string;
codeHost?: string;
2024-11-10 00:40:07 +00:00
}
}
export type PosthogEvent = keyof PosthogEventMap;