結果 : typescript infer generic type from parameter