ForbesLindesay / funtypes

Runtime validation for static types
MIT License
29 stars 4 forks source link

Readonly Tuple Type #50

Closed MicahZoltu closed 3 years ago

MicahZoltu commented 3 years ago

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.