mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-04 11:56:37 -04:00
edge functions didn't make sense for database calls
This commit is contained in:
13
types/stats.d.ts
vendored
13
types/stats.d.ts
vendored
@ -1,15 +1,10 @@
|
||||
import type { NoteFrontMatter } from "./note";
|
||||
// a silly file, but this ensures that /api/count returns exactly what <HitCounter /> expects.
|
||||
|
||||
export type PageStats = {
|
||||
hits: number;
|
||||
};
|
||||
import type { hits as Hits } from "@prisma/client";
|
||||
|
||||
export type DetailedPageStats = PageStats &
|
||||
Pick<NoteFrontMatter, "slug" | "title" | "date"> & {
|
||||
url: string;
|
||||
};
|
||||
export type PageStats = Pick<Hits, "hits">;
|
||||
|
||||
export type SiteStats = {
|
||||
total: PageStats;
|
||||
pages: DetailedPageStats[];
|
||||
pages: Hits[];
|
||||
};
|
||||
|
Reference in New Issue
Block a user