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

    Function reportUnknown

    • Detect API keys the finished model did not map and report them — to the client's onUnknownField hook when set, otherwise to console.warn when reportUnknownFields is enabled.

      Called at the end of a deJson once every field (scalar and nested) is assigned: any raw key without a matching own-property on the model is unmapped. This relies on the library's verbatim camelCase mapping (model field names equal API keys), which holds throughout. Detection is off unless one of the two options is set, so it is safe to leave wired into every model.

      Parameters

      • client: Client | undefined

        The owning client (carries reportUnknownFields/onUnknownField).

      • label: string

        Model name, used in the report.

      • raw: JSONObject

        The raw JSON object the model was built from.

      • model: object

        The finished model instance.

      • OptionalalsoKnown: readonly string[]

        Raw keys consumed under a different model field name (for example a snake_case API key mapped to a camelCase field); not reported.

      Returns void