angular-drag-n-drop-directive
angular-drag-n-drop-directive copied to clipboard
Parameter 'evt' implicitly has an 'any' type error
In dnd.directive.ts these line throw the error: Parameter 'evt' implicitly has an 'any' type.
@HostListener('dragover', ['$event']) onDragOver(evt) {
@HostListener('dragleave', ['$event']) public onDragLeave(evt) {
@HostListener('drop', ['$event']) public ondrop(evt) {
In
dnd.directive.tsthese line throw the error:Parameter 'evt' implicitly has an 'any' type.
@HostListener('dragover', ['$event']) onDragOver(evt) {
@HostListener('dragleave', ['$event']) public onDragLeave(evt) {
@HostListener('drop', ['$event']) public ondrop(evt) {
You need to change to this:
@HostListener('dragover', ['$event']) onDragOver(evt: any) {
@HostListener('dragleave', ['$event']) public onDragLeave(evt: any) {
@HostListener('drop', ['$event']) public ondrop(evt: any) {