Hi, is there a way to easily copy data classes gen...
# javascript
g
Hi, is there a way to easily copy data classes generated by @JsExport in TypeScript? Currently, the generated
copy
function requires to set all fields, so it is no better than just creating a new object. I'm looking for something like
obj.copy(a = "foo")
in Kotlin or
obj = {...obj, a: "foo"}
in JS, but for the auto-generated data classes
🚫 1