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

16 lines
295 B
TypeScript

import type { NoteFrontMatter } from "./note";
export type PageStats = {
hits: number;
};
export type DetailedPageStats = PageStats &
Pick<NoteFrontMatter, "slug" | "title" | "date"> & {
url: string;
};
export type SiteStats = {
total: PageStats;
pages: DetailedPageStats[];
};