lots of random cleanup & organization

This commit is contained in:
2021-07-20 15:22:57 -04:00
parent 71892d3e17
commit e4d3e074fd
27 changed files with 425 additions and 419 deletions
+12 -12
View File
@@ -1,30 +1,30 @@
export type TrackSchema = {
export type SpotifyTrackSchema = {
name: string;
artists: Array<{
name: string;
}>;
album: {
name: string;
images: Array<{
url: string;
images?: Array<{
url: URL;
}>;
};
imageUrl?: string;
imageUrl?: URL;
external_urls: {
spotify: string;
spotify: URL;
};
};
export type SpotifyActivitySchema = {
is_playing: boolean;
item?: SpotifyTrackSchema;
};
export type Track = {
isPlaying: boolean;
artist?: string;
title?: string;
album?: string;
imageUrl?: string;
songUrl?: string;
};
export type Activity = {
is_playing: boolean;
item?: TrackSchema;
imageUrl?: URL;
songUrl?: URL;
};