musikspider/src/types.ts

25 lines
404 B
TypeScript
Raw Normal View History

2023-04-21 22:35:25 +03:00
export type ResourceId = bigint;
export interface Track {
title: string,
track_num: number,
album_title: string,
2023-04-21 22:35:25 +03:00
album_id: ResourceId,
artist_name: string,
2023-04-21 22:35:25 +03:00
artist_id: ResourceId,
thumbnail_id: ResourceId,
}
export interface TrackWithId {
id: ResourceId,
track: Track,
}
export interface Artist {
name: string,
}
export interface Album {
title: string,
artist_id: ResourceId,
}