Handling Immutable Arrays with Data.array in Effect Typescript

i have an immutable array with Data.array([...])
Then I perform some actions, like Array.sort(arr, Order.number)
The returned data is just a ordinary array, not the readonly one with Data array.
So I have to wrap the returned value with Data.array
This is cumbersome. Is there a better way?
Was this page helpful?