結果 : typescript create object from generic type