spierce7
05/29/2020, 7:09 PMSvyatoslav Kuzmich [JB]
05/29/2020, 7:15 PMspierce7
05/29/2020, 8:55 PMspierce7
05/29/2020, 9:10 PMGrantas33
05/29/2020, 11:08 PM.toString(), .copy(), constructor
, because the actual class implementations in the generated .js file append an underscore to all the field names, for example id becomes _id.dazza5000
05/30/2020, 3:10 PMGrantas33
05/30/2020, 4:18 PMepabst
06/01/2020, 5:24 AMspierce7
06/01/2020, 5:35 PMid
, it will show up as _id
to be accessed from typescript?Grantas33
06/01/2020, 7:57 PMJSON.stringify(new SampleClass("someId"))
it would return
{"_id": "someId"}
which would fail to deserialize to
data class SampleClass(val id: String)
in Kotlinspierce7
06/01/2020, 8:22 PMspierce7
06/01/2020, 8:23 PMGrantas33
06/01/2020, 8:34 PMspierce7
06/01/2020, 8:47 PMspierce7
06/01/2020, 8:47 PMspierce7
06/01/2020, 8:47 PMGrantas33
06/01/2020, 8:49 PMspierce7
06/02/2020, 2:23 AMGrantas33
06/02/2020, 7:19 AMepabst
07/31/2020, 2:05 AMspierce7
07/31/2020, 3:01 AM