<How can I set the JsName for a property's backing...
# stackoverflow
u
How can I set the JsName for a property's backing field in Kotlin? I played about with Kotlin's unsupported JavaScript backend in 1.0.x and am now trying to migrate my toy project to 1.1.x. It's the barest bones of a single-page web app interfacing with PouchDB. To add data to PouchDB you need JavaScript objects with specific properties _id and _rev. They also need to not have any other properties beginning with _ because they're reserved by PouchDB. Now, if I create a class like this, I can send instances to PouchDB. class PouchDoc( var _id:...