Resolving Type Mismatch Between Readonly and Non-Readonly Arrays in TypeScript Effect Code
I'm using the following Effect code to add a default empty array value for my data:
However, I'm facing a type mismatch between readonly and non-readonly arrays. The inferred type is:
How can I fix this issue? Is there a way to convert
However, I'm facing a type mismatch between readonly and non-readonly arrays. The inferred type is:
How can I fix this issue? Is there a way to convert
S.Array to a non-readonly array?