Skip to content

Commit

Permalink
feat(project): add playlist types
Browse files Browse the repository at this point in the history
  • Loading branch information
demmyhonore committed Apr 30, 2021
1 parent 829ab43 commit 360d774
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions types/playlist.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export type Image = {
src: string;
type: string;
width: number;
};

export type Source = {
file: string;
type: string;
};

export type Track = {
file: string;
kind: string;
};

export type PlaylistItem = {
description: string;
duration: number;
feedid: string;
image: string;
images: Image[];
link: string;
genre: string;
mediaid: string;
pubdate: number;
rating: string;
sources: Source[];
tags: string;
title: string;
tracks: Track[];
variations?: Record<string, unknown>;
};

export type Playlist = PlaylistItem[]

0 comments on commit 360d774

Please sign in to comment.