mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 14:08:29 -04:00
31 lines
468 B
TypeScript
31 lines
468 B
TypeScript
export type SpotifyTrackSchema = {
|
|
name: string;
|
|
artists: Array<{
|
|
name: string;
|
|
}>;
|
|
album: {
|
|
name: string;
|
|
images?: Array<{
|
|
url: URL;
|
|
}>;
|
|
};
|
|
imageUrl?: URL;
|
|
external_urls: {
|
|
spotify: URL;
|
|
};
|
|
};
|
|
|
|
export type SpotifyActivitySchema = {
|
|
is_playing: boolean;
|
|
item?: SpotifyTrackSchema;
|
|
};
|
|
|
|
export type Track = {
|
|
isPlaying: boolean;
|
|
artist?: string;
|
|
title?: string;
|
|
album?: string;
|
|
imageUrl?: URL;
|
|
songUrl?: URL;
|
|
};
|