結果 : typescript define function with object parameter