I have a class that I'm trying to extend from a ja...
# javascript
z
I have a class that I'm trying to extend from a javascript library. I declared the class as below
Copy code
@file:JsModule("electron")
@file:JsNonModule

package cozycord.wrappers

open external class BrowserWindow(options: dynamic = definedExternally)
And I extend the class like this
Copy code
class PatchedBrowserWindow(options: dynamic) : BrowserWindow(options)
Problem is though that I get
Error: Requires constructor call
Where the transpiled JS looks like this