結果 : make generic type optional typescript