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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: transform object property assignment to defineProperty #75

Open
aghArdeshir opened this issue Aug 1, 2023 · 0 comments

Comments

@aghArdeshir
Copy link

refactor

myObject.someProp = 'someValue'

to

Object.defineProperty(myObject, 'someProp', {
  value: 'someValue'
})

I use this technique a lot for bypassing TypeScript 馃榿 But I believe we may be able to find good use cases for it as well. : )

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

No branches or pull requests

1 participant