mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 13:15:32 -04:00
add page stats typings
This commit is contained in:
15
types/stats.d.ts
vendored
Normal file
15
types/stats.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
export type PageStats = {
|
||||
hits: number;
|
||||
};
|
||||
|
||||
export type DetailedPageStats = PageStats & {
|
||||
slug: string;
|
||||
title?: string;
|
||||
url?: string;
|
||||
date?: string;
|
||||
};
|
||||
|
||||
export type SiteStats = {
|
||||
total: PageStats;
|
||||
pages: DetailedPageStats[];
|
||||
};
|
Reference in New Issue
Block a user