Hello everyone! Say where is a class defined in `....
# javascript
a
Hello everyone! Say where is a class defined in
.js
file like this:
Copy code
OuterClass.InnerClass = function(arg1, arg2) { ... } 

export default p5.Element;
How can i write external declaration for it in kotlin, given that i already have OuterClass exported? Should it be like
Copy code
external class OuterClass {
    class InnerClass(arg1: Int, arg2: Int) {}
}
Can it be done outside
OuterClass
class?
b
It cannot, since external declarations must represent the final shape, not the way it might be achieved in js
a
thank you!