What type of event you need to register?

Good evening, prompt please how to register type in this case? Using select from material ui. currentTarget.use innerText to get the text in a MenuItem
const handleChange = (event: any) => {
 if (
 event.currentTarget.innerText === 'BALANCE'
 ) {
 setSendForm({...sendForm, balance, event.target.value});
setCBal(true);
 } else {
 setSendForm({...sendForm, balance, event.target.value});
setCBal(false);
}
};


<Select
labelId="balance-select-label"
id="balance-select"
required
value={sendForm.balance}
onChange={handleChange}
>
 {balances.map((i: UserB, index: number) => (
 <MenuItem key={index} value={i.id}>{i.account}</MenuItem>
))}
</Select>
April 19th 20 at 12:01
2 answers
April 19th 20 at 12:03
event.currentTarget.options[event.currentTarget.selectedIndex].text
@rasschita is also suitable, but I wanted to know what to write instead of any and all options tried - Madisen82 commented on April 19th 20 at 12:06
April 19th 20 at 12:05
type TypescriptInferTheEventTypeForMeplease
 = HTMLSelectElement['addEventListener'] extends ((
 eventName: 'change',
 cb: (event: infer E) => any
 ) => any)
 ? E
 : never;

PS VSCode says that it is just Event

Find more questions by tags ReactTypeScriptJavaScript