結果 : typescript function accept generic type