I'm currently working with Deno and fresh. When it comes to events in islands, what is the type for an event like the one below?
export function Sample() {
return (
<input
type="file"
onChange={(e) => ...} // What type is this `e`?
/>
);
}
I would also like to write it as shown here.
export function Sample() {
const onChangeHandler = (e: ?) => { // What is the type of `e`? How do I import the type???
...
}
return (
<input
type="file"
onChange={onChangeHandler} // What is the type of `e`?
/>
);
}
The type appears to be
JSXInternal.TargetedEvent<HTMLInputElement, Event>
. Is this correct? How can I import this type from fresh?