Has anyone figured how to declare kotlin externals...
# javascript
b
Has anyone figured how to declare kotlin externals for TS constructor reference type? Given TS
Copy code
class TSClassOne {
  constructor(someProp: string) {
    ...
  }
}

class TSClassTwo {
  TSClassOne: new (someProp: string) => TSClassOne
}
How to declare it in K/JS?
Copy code
external class TSClassOne(someProp: String)

external class TSClassTwo {
  var TSClassOne: dynamic // actual: `new (someProp: string) => TSClassOne`, how do I tell kotlin that? `(String) -> TSClassOne` does not work as it's not invoking `new` call
}
1
t
Looks like fine case for
@JsQualifier
b
How would that help with injecting new invocation to types?
t
Is it additional type constructor in your example?
b
Not sure what you are asking