Hi,
I'm trying to use LinkedHashMap from JavaScript (Typescript, really) and I have the following in my code...
const kotlin = require("kotlin");
...
let identityContext = new kotlin.kotlin.collections.LinkedHashMap()
identityContext.put("mYKey","myValue");
but when I run this, I get the following error:
TypeError: identityContext.put is not a function
When I look at kotlin.js, I see the following definition of "put":
LinkedHashMap.prototype.put_xwzc9p$ = function (key, value)
I see that LinkedHashMap is an expect class, so I assumed that there's a JavaScript accept class with proper @JsName declarations. Is this not the case? Do I need to use the mangled function name?
Thanks