There exists the exact same question, but it was about array parameters.
How do I type str in this case?
const func = ({str, ...rest})=>{//doStuff}
This did not work:
const func = ({str, ...rest}:{str:string})=>{//doStuff}
This neither:
const func = ({str, ...rest}:{str:string; ...rest:any[]})=>{//doStuff}