spotify-manager/typedefs.js

53 lines
876 B
JavaScript

/**
* @typedef {import('module')} Module
*
* @typedef {import('express').Request} Req
* @typedef {import('express').Response} Res
* @typedef {import('express').NextFunction} Next
*
* @typedef {import('winston').Logger} Logger
*
* @typedef {{
* display_name: string,
* id: string
* }} User
*
* @typedef {{
* name: string,
* id: string,
* }} SimplifiedPlaylist
*
* @typedef {{
* name: string
* }} Album
*
* @typedef {{
* name: string
* }} Artist
*
* @typedef {{
* uri: string,
* name: string,
* artists: Artist[]
* album: Album,
* is_local: boolean,
* }} Track
*
* @typedef {{
* added_at: string,
* track: Track,
* }} PlaylistTrack
*
* @typedef {{
* uri: string,
* name: string,
* description: string,
* owner: User,
* followers: {
* total: number
* },
* tracks: PlaylistTrack[],
* }} Playlist
*/
exports.unused = {};