The type of an argument passed to a function is not compatible with the declared parameter type. Check the function signature and the value being passed.
TS2345
typescript The type of an argument passed to a function is not compatible with the declared parameter type. Check the function signature and the value being passed.