Reintroduce Track and User models

This commit is contained in:
Maciej Pędzich 2023-01-26 15:22:12 +01:00
parent 53dc5939a2
commit c6febffe38
2 changed files with 22 additions and 0 deletions

18
src/models/Track.ts Normal file
View 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
View File

@ -0,0 +1,4 @@
export interface User {
name: string;
url: string;
}