mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-09-19 18:16:19 +02:00
Reintroduce Track and User models
This commit is contained in:
parent
53dc5939a2
commit
c6febffe38
18
src/models/Track.ts
Normal file
18
src/models/Track.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import type { User } from './User';
|
||||
|
||||
export interface Track {
|
||||
added_at: string;
|
||||
album: {
|
||||
name: string;
|
||||
url: string;
|
||||
};
|
||||
artists: User[];
|
||||
duration_ms: number;
|
||||
name: string;
|
||||
url: string;
|
||||
date_added: string;
|
||||
date_added_asterisk: boolean;
|
||||
date_removed: string | null;
|
||||
position?: string;
|
||||
retention?: number;
|
||||
}
|
4
src/models/User.ts
Normal file
4
src/models/User.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface User {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
Loading…
Reference in New Issue
Block a user