Just dumping another issue here so that I remember...
# javascript
e
Just dumping another issue here so that I remember what I was talking about. Let's say we have: `commonMain`:
Copy code
public expect fun ZSocket(charset: String): ZSocket
`jsMain`:
Copy code
@JsExport
public actual fun ZSocket(charset: String): ZSocket { ... }
Notice I'm exporting a function with same name as an
interface
. No warnings emitted. Resulting ES JS code: see screenshot. So this breaks at runtime when importing via TS declaration:
Copy code
export declare interface ZSocket {
  ...
export declare function ZSocket(charset: string): ZSocket;
👀 1
a
Could you please create an issue? I will try to take a look this week
✔️ 1
e
@Artem Kobzar I will with this one too. I wanted to dump it here so when I have time I can just get back to it
thank you color 1