This type checking problem took me all day and I still have not solved it. I searched everywhere, but I see that no one has gone through it. Could someone give me a light? thank you!
<input
type="text"
value={shareURLValue}
className={classnames("share-url-holder", {
shared: Boolean(shareId) && !shareHidden,
})}
ref={saveShareURLRef}
onClick={e => {
e.target.select(); #Property 'select' does not exist on type 'EventTarget'.
}}
onKeyUp={e => {
e.target.select(); #Property 'select' does not exist on type 'EventTarget'.
}}
/>