Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
razvan-zamfir-rsystems opened this issue Jan 30, 2023 · 1 comment
Open

Comments

@razvan-zamfir-rsystems
Copy link

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

@MELAS007
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants