zsmb
08/03/2017, 5:04 PMexternal interface JQueryPromiseCallback<T> {
@nativeInvoke
operator fun invoke(value: T? = definedExternally, vararg args: Any)
}
I need an instance of this as a function parameter, I tried creating one like this:
object: JQueryPromiseCallback<Any> {
override fun invoke(value: Any?, vararg args: Any) {
}
})
However, I'm getting an error on the invoke function:
TheOverriding 'external' function with optional parameters
@nativeInvoke
annotation is also deprecated, and gives me a deprecation message that I can't figure out:
Am I supposed to correct the file that ts2kt generated? If so, how?Use inline extension function with body using dynamic
gbaldeck
08/03/2017, 6:45 PMgbaldeck
08/03/2017, 6:46 PMtypealias JQueryPromiseCallback<T> = (T?, dynamic) -> dynamic
bashor
08/04/2017, 10:08 AMzsmb
08/04/2017, 10:37 AMzsmb
08/04/2017, 10:39 AMbashor
08/04/2017, 10:52 AMbashor
08/04/2017, 10:54 AMI might just get on it myself.You can do it base on converted code. Any way feel free to ask any question.
bashor
08/04/2017, 10:56 AMzsmb
08/04/2017, 1:04 PMbashor
08/04/2017, 2:53 PM