結果 : typescript pass generic type to function