Ignore:
Timestamp:
01/31/26 22:34:40 (5 months ago)
Author:
Dimitar Arsov <dimitararsov04@…>
Branches:
main
Children:
d2af1a6
Parents:
2b08bed
Message:

show songs in playlists/albums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/utils/types.ts

    r2b08bed r2730163  
    1313  role: string;
    1414  entityType: string;
     15  isLikedByCurrentUser: boolean;
    1516}
     17
    1618export interface MusicalEntity {
    1719  id: number;
     
    2022  type: string;
    2123  releasedBy: string;
     24  isLikedByCurrentUser?: boolean;
     25}
     26
     27export interface Song extends MusicalEntity {
     28  type: "SONG";
     29}
     30
     31export interface Album extends MusicalEntity {
     32  type: "ALBUM";
     33  songs: Song[];
    2234}
    2335
     
    2739  cover: string;
    2840  creatorName: string;
     41  songsInPlaylist: Song[];
    2942}
    3043
Note: See TracChangeset for help on using the changeset viewer.