Are there any planned updates to how extension fun...
# javascript
a
Are there any planned updates to how extension functions/properties will be treated in the new JS IR compiler? It would be great if they could be `@JsExport`ed as functions that just take the target as a parameter Asking because migrating to KSP stops us from modifying classes directly
b
Please provide en example
From my POV it already work that way, maybe I misunderstood you?
For
Copy code
@JsExport
fun String.foo() = 1
You will get in JS:
Copy code
function foo(_this_) {
    return 1;
  }
in d.ts
Copy code
export function foo(_this_: string): number;
a
Ah I understand - I think I was looking at the JsExport documentation around extension properties and thinking it applied to extension functions