Skip to content

Feature Request: transform object property assignment to defineProperty  #75

@aghArdeshir

Description

@aghArdeshir

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. : )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions