1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 15:28:28 -04:00
jarv.is/types/stats.d.ts

11 lines
260 B
TypeScript

// a silly file, but this ensures that /api/count returns exactly what <HitCounter /> expects.
import type { hits as Hits } from "@prisma/client";
export type PageStats = Pick<Hits, "hits">;
export type SiteStats = {
total: PageStats;
pages: Hits[];
};