fast-check icon indicating copy to clipboard operation
fast-check copied to clipboard

Allow record to produce readonly properties when provided readonly

Open dubzzz opened this issue 1 month ago • 0 comments

🚀 Feature Request

At the moment fc.record only produce editable (aka writable) instances. In reality it could mirror what the user passed to it. If the received model is made of readonly fields, then they should probably stay readonly in the resulting instances (typings and js-wise). Same for sealed.

Before starting this feature, we should probably ask ourselves whether or not readonly should be yet another flag or something as described above.

dubzzz avatar May 21 '24 07:05 dubzzz