結果 : typescript function type with object parameter