There is ReadonlyArray(...) and Object(...).asReadonly(). However, there is no ReadonlyTuple(...) nor Tuple(...).asReadonly(). It would be nice to have this, as I'm running into problems due to [...] as const producing a readonly array and this is incompatible with funtypes Tuples.
There is
ReadonlyArray(...)
andObject(...).asReadonly()
. However, there is noReadonlyTuple(...)
norTuple(...).asReadonly()
. It would be nice to have this, as I'm running into problems due to[...] as const
producing a readonly array and this is incompatible with funtypes Tuples.