-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
DeepReadonly type #1452
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
Currently,
readonly({})
uses theReadonly<>
type. This makes all properties readonly. However, it should also affect nested properties.So, I suggest adding a DeepReadonly type like the one in ts-essentials and using it for the
readonly({})
function. This would result in Typescript being able to catch more errors at compile time.What does the proposed API look like?
The text was updated successfully, but these errors were encountered: