SNOW-1789882: Accept readonly arrays as Binds #949
Labels
enhancement
The issue is a request for improvement or a new feature
status-triage_done
Initial triage done, will be further handled by the driver team
Version:
[email protected]
Currently, Binds are typed as followed:
So if I have an array that is typed as a
ReadonlyArray
:I get the following type error:
Technically, there should not be an issue with accepting a readonly array, It's only a TypeScript construct and in JavaScript's view it's a just normal array.
I suggest changing the types to be as followed:
Thank you!
The text was updated successfully, but these errors were encountered: