To work with Deezer chart objects.

the Deezer Chart API Documentation for more details about each field.

Hierarchy (View Summary)

Constructors

Properties

tracks: Track[] | []
albums: [] | Album[]
artists: Artist[] | []
playlists: [] | Playlist[]
podcasts: [] | Podcast[]
type: string = "chart"
client: Client
_fields: string[]
_fetched: boolean = false
id: number

Methods

  • Type Parameters

    • T

    Parameters

    • relation: string
    • OptionalresourceType: new (client: Client, json: Record<string, any>) => Resource
    • Optionalparams: Record<string, string>
    • fwdParent: boolean = true

    Returns Promise<T>

  • Ensures a field is loaded, fetching the full resource if necessary.

    Type Parameters

    • T

    Parameters

    • fieldName: string

      The name of the field to ensure

    Returns Promise<T>

    The value of the field

    Error if the field cannot be loaded