PlaylistsActions.ts 454 B

123456789101112131415161718
  1. import { PlaylistModel, PlaylistSong } from "../models/Playlist";
  2. import { GenericResponse } from "./GenericActions";
  3. export type IndexMyPlaylistsResponse = GenericResponse & {
  4. data: {
  5. playlists: (PlaylistModel & { weight: number })[];
  6. };
  7. };
  8. export type AddSongToPlaylistResponse = GenericResponse & {
  9. data: {
  10. songs: PlaylistSong[];
  11. };
  12. };
  13. export type RemoveSongFromPlaylistResponse = GenericResponse & {
  14. data: {
  15. songs: PlaylistSong[];
  16. };
  17. };