spotify-manager/typedefs.js
Kaushik Narayan R 5803c997b2 back again...
bit of validation, some fixes, some auth corrections

scrapped graph db stuff

some misc. stuff, check the diff if you want bruh
2024-07-24 13:38:07 +05:30

56 lines
959 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,
* uri: string,
* id: string
* }} PlaylistOwner
*
* @typedef {{
* name: string,
* description: string,
* owner: PlaylistOwner,
* 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: PlaylistOwner,
* followers: {
* total: number
* },
* tracks: PlaylistTrack[],
* }} Playlist
*/
exports.unused = {};