You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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: