Anyone have difficulties defining an `external` cl...
# javascript
s
Anyone have difficulties defining an
external
class with a constructor? Getting a
not defined
error when trying to run tests. Though I'm unsure if this is because of how I defined the constructor, or because of something else related to the class..
Copy code
external class Keypair(keys: dynamic) {
    //omitted for brevity
}
and the class I am trying to get it to find with the
external
modifier
Copy code
export class Keypair {
  constructor(keys) {
     //omitted
  }
  //omitted
}
s
Looks like your TS class is inside a module. Do you have a
@file:JsModule
annotation?
t