@dvxch/yandex-music
    Preparing search index...

    Class ChartInfo

    A chart page (backed by a playlist of ranked tracks).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    chart?: Playlist

    The playlist backing the chart.

    chartDescription?: string

    Chart description.

    client?: Client

    The client that created this model, used by convenience methods.

    id?: string

    Chart id.

    menu?: JSONValue

    Chart menu (raw JSON, pending a typed model).

    title?: string

    Chart title.

    type?: string

    Chart type.

    typeForFrom?: string

    Origin tag used in from parameters.

    Methods

    • Assert that this model carries a client, returning it narrowed to non-null.

      Convenience methods that need to call the API use this to fail fast with a clear message instead of a generic "cannot read property of undefined".

      Returns Client

      The owning Client.

      When the model was created without a client.