mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-20 16:05:40 -04:00
clean up type declarations
This commit is contained in:
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