how to write generics in extern class?
package;
extern class TestJs
{
@:generic public static function GetComponent<T>() : T;
}
class Main {
static function main() {
var s:String = TestJs.GetComponent<String>();//it's error? how to write like C# here?
}
}