angular-drag-n-drop-directive icon indicating copy to clipboard operation
angular-drag-n-drop-directive copied to clipboard

Parameter 'evt' implicitly has an 'any' type error

Open razvan-zamfir-rsystems opened this issue 2 years ago • 1 comments
trafficstars

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) {

razvan-zamfir-rsystems avatar Jan 30 '23 11:01 razvan-zamfir-rsystems

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) {

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) {

MELAS007 avatar Dec 12 '23 10:12 MELAS007