結果 : typescript create generic method