Azure-sdk-for-js: [cosmos] QuerySpec do not accept readonly arrays

Created on 30 Jul 2020  路  1Comment  路  Source: Azure/azure-sdk-for-js

  • Package Name: cosmos
  • Package Version: 3.7.4
  • Operating system: Windows
  • [x] nodejs

    • version: 10.22.0

  • [ ] browser

    • name/version:

  • [x] typescript

    • version: 3.8.3

  • Is the bug related to documentation in

Describe the bug
The type of QuerySpec parameters does not accept readonly array nor ArrayLike.
I working with immutable data, but it's bothersome forcing the type in this cases, and accepting this type of values should affect the behavior since they are still arrays.
In specific is the type JSONArray which only extends from Array and not ArrayLike.

To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
Accept any type of arrays on the QuerySpec parameters.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Client Cosmos customer-reported needs-team-attention question

Most helpful comment

This was released in 3.8.0

>All comments

This was released in 3.8.0

Was this page helpful?
0 / 5 - 0 ratings