mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-04 10:35:32 -04:00
clean up type declarations
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
type PageStats = {
|
||||
title?: string;
|
||||
url?: string;
|
||||
date?: string;
|
||||
slug: string;
|
||||
hits: number;
|
||||
pretty_hits: string;
|
||||
pretty_unit: string;
|
||||
};
|
||||
|
||||
type OverallStats = {
|
||||
total: {
|
||||
hits: number;
|
||||
pretty_hits?: string;
|
||||
pretty_unit?: string;
|
||||
};
|
||||
pages: PageStats[];
|
||||
};
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
type Repository = {
|
||||
name: string;
|
||||
url: string;
|
||||
description: string;
|
||||
primaryLanguage?: {
|
||||
color: string;
|
||||
name: string;
|
||||
};
|
||||
stargazerCount: number;
|
||||
stargazerCount_pretty?: string;
|
||||
forkCount: number;
|
||||
forkCount_pretty?: string;
|
||||
pushedAt: string;
|
||||
pushedAt_relative?: string;
|
||||
};
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
type TrackSchema = {
|
||||
name: string;
|
||||
artists: Array<{
|
||||
name: string;
|
||||
}>;
|
||||
album: {
|
||||
name: string;
|
||||
images: Array<{
|
||||
url: string;
|
||||
}>;
|
||||
};
|
||||
imageUrl?: string;
|
||||
external_urls: {
|
||||
spotify: string;
|
||||
};
|
||||
};
|
||||
|
||||
type Track = {
|
||||
isPlaying: boolean;
|
||||
artist?: string;
|
||||
title?: string;
|
||||
album?: string;
|
||||
imageUrl?: string;
|
||||
songUrl?: string;
|
||||
};
|
||||
|
||||
type Activity = {
|
||||
is_playing: boolean;
|
||||
item?: TrackSchema;
|
||||
};
|
||||
Reference in New Issue
Block a user