typescript-primitives-type
typescript-primitives-type copied to clipboard
Add MutablePrimitives.ts for cases when creating editable objects.
When using Vue 3 to create a ref variable from a User class (a Value Object) in forms, it is not possible to create an editable object. To address this, create MutablePrimitives.ts for such cases.
Context:
Class User:
Error: TypeScript asignable new values, conflict with property read-only
Now:
Test:
Good one!
Thanks a lot for the contribution @FerbDev1 🙌
I have just configured the GitHub Workflow in order to also run in Pull Requests. Could you please sync your fork in order to trigger the tests execution for this PR?
Thanks!!