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

    Class Difference

    Accumulates playlist edit operations and serializes them to the diff string expected by users/{uid}/playlists/{kind}/change.

    Index

    Constructors

    Methods

    • Append a delete operation removing tracks in the half-open range [from, to).

      Parameters

      • from: number

        Start index (inclusive).

      • to: number

        End index (exclusive).

      Returns this

      This builder, for chaining.

    • Append an insert operation placing tracks at the given index.

      Parameters

      • at: number

        Insertion index.

      • tracks: DiffTrack | DiffTrack[]

        A single track reference or a list of them.

      Returns this

      This builder, for chaining.