add page stats typings

This commit is contained in:
jake committed 2022-06-30 09:17:12 -04:00
1 parent ae2cb50cbe
commit 7da0a713a4
9 files changed
+80 -87

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
export * from "./note";
export * from "./project";
export * from "./stats";
export * from "./track";
export * from "./webpack";
+15
View 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[];
};
+7
View File
@@ -0,0 +1,7 @@
export type Track = {
artist: string;
title: string;
album: string;
url: URL | string;
image?: URL | string;
};