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

    Function deList

    • Deserialize an array of raw JSON objects into typed model instances.

      Non-object entries and entries the deserializer rejects (returns null) are skipped, so the result only contains successfully parsed models.

      Type Parameters

      • T

        The model type produced.

      Parameters

      • deJson: DeJson<T>

        The per-model deserializer (typically Model.deJson).

      • data: JSONValue | undefined

        A raw JSON array, or any value (returns [] when not an array).

      • Optionalclient: Client

        The owning Client, propagated to each model.

      Returns T[]

      The list of successfully deserialized models.