Ayfri
08/24/2021, 10:26 PMexport class A<T extends (...args: any[]) => void> {
}
type B = (a: string, b: string, c: string) => void;
export interface C {
foo: A<B>
}
I tried this but it says Type argument is not within its bounds.
:
open external class A<T : (args: Array<out Any>) -> Unit)
typealias B = (a: String, b: String, c: String) -> Unit
external interface C {
var foo: A<B>
}
turansky
08/24/2021, 11:02 PMT: Function<Unit>
Ayfri
08/24/2021, 11:04 PMturansky
08/25/2021, 2:22 AMAyfri
08/25/2021, 2:22 AM