結果 : typescript get generic type from parameter