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

Add MutablePrimitives.ts for cases when creating editable objects. #10

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

FerbDev1
Copy link

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

@JavierCane
Copy link
Member

JavierCane commented Feb 26, 2024

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

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

Successfully merging this pull request may close these issues.

2 participants