typescript-primitives-type icon indicating copy to clipboard operation
typescript-primitives-type copied to clipboard

Add MutablePrimitives.ts for cases when creating editable objects.

Open FerbDev1 opened this issue 1 year ago • 1 comments

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: image

Class User: image

Error: TypeScript asignable new values, conflict with property read-only image

Now: image

Test: image

FerbDev1 avatar Feb 25 '24 22:02 FerbDev1

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!!

JavierCane avatar Feb 26 '24 11:02 JavierCane