mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-19 06:55:30 -04:00
add page stats typings
This commit is contained in:
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
export * from "./note";
|
||||
export * from "./project";
|
||||
export * from "./stats";
|
||||
export * from "./track";
|
||||
export * from "./webpack";
|
||||
|
||||
Vendored
+15
@@ -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[];
|
||||
};
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
export type Track = {
|
||||
artist: string;
|
||||
title: string;
|
||||
album: string;
|
||||
url: URL | string;
|
||||
image?: URL | string;
|
||||
};
|
||||
Reference in New Issue
Block a user