Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow record to produce readonly properties when provided readonly #5008

Open
dubzzz opened this issue May 21, 2024 · 0 comments
Open

Allow record to produce readonly properties when provided readonly #5008

dubzzz opened this issue May 21, 2024 · 0 comments

Comments

@dubzzz
Copy link
Owner

dubzzz commented May 21, 2024

🚀 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant