target can be an eventTarget interface, so you need to check what the target is
target
eventTarget
<input onInput={({target}) => { if (target instanceof HTMLInputElement) { onInput(target.value) } }}/>