結果 : typescript use generic type in function