Check out example codes for "angular input change event datatype typescript". It will help you in understanding the concepts better.
Code Example 1
public onChange(event: Event): void {
if ((event.target as HTMLInputElement).files && (event.target as HTMLInputElement).files.length) {
const [file] = event.target.files;
}
}
Learn ReactJs, React Native from akashmittal.com