Angulareingangsänderung Ereignis Datentyps -TypScript

public onChange(event: Event): void {
  if ((event.target as HTMLInputElement).files && (event.target as HTMLInputElement).files.length) {
    const [file] = event.target.files;
  }
}
amit.bhagat