function updateFilterData(
mode: 'PaymentType' | 'Origin' | 'Destination',
value: string,
) {
}
I need to modify this function so that when mode
is 'Origin' | 'Destination'
, the value
should be a string
. If the mode is PaymentType
, then the value
should be either 'Payment in'
or 'Payment out'
.