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

    Class Feed

    The personalised feed (/feed).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    canGetMoreEvents?: boolean

    Whether more events can be loaded.

    client?: Client

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

    days?: Day[]

    The feed days.

    generatedPlaylists?: GeneratedPlaylist[]

    Personalised generated playlists.

    headlines?: JSONValue[]

    Headline blocks (raw JSON).

    isWizardPassed?: boolean

    Whether the onboarding wizard has been completed.

    nextRevision?: JSONValue

    Revision token for the next page (raw JSON).

    pumpkin?: boolean

    Whether the Halloween ("pumpkin") theme is active.

    today?: string

    Today's date (YYYY-MM-DD).

    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.