Is it possible to create a declaration for this? ...
# javascript
a
Is it possible to create a declaration for this?
Copy code
interface SQLiteStoreInitator {
        new(options?: SQLiteStoreOptions): SQLiteStore;
}
I tried using it like this:
Copy code
external interface SQLiteStoreInitator {
    operator fun invoke(options: dynamic = definedExternally): dynamic
}
but when i use it like SQLiteStoreInitator() it returns undefined. I think it's because it tries to call it as a function instead of a constructor
t
JsConstructorFunction
is what you need
It already has fine
invoke
extension
a
it worked. thanks!
👍 1