Alex Styl
03/24/2025, 4:02 AMinterface SQLiteStoreInitator {
new(options?: SQLiteStoreOptions): SQLiteStore;
}
I tried using it like this:
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 constructorturansky
03/24/2025, 10:52 AMJsConstructorFunction
is what you needturansky
03/24/2025, 10:52 AMturansky
03/24/2025, 10:53 AMinvoke
extensionAlex Styl
03/24/2025, 2:25 PM