It is javascript code
const handleChange = ({ target: { name, value } }) => formDispatch({ name, value });
I tried to convert this code to TypeScript
const handleChange = ({ (target:any): { (name:string), (value:string) } }) => formDispatch({ name, value });
but VS Code doesn't interpret this. what is wrong?