Skip to content Skip to sidebar Skip to footer

Angular - Argument Of Type Is Not Assignable To Parameter

TypeScript shows me below erros in app.component.ts: Argument of type '(events: Event[]) => void' is not assignable to parameter of type '(value: Event[]) => void'. Typ

Solution 1:

You probably forgot to import the Event interface in app.service.ts or in app.component.ts and one of the Event you are referring to is the native Javascript Event.

If that doesn't help, try to rename the interface so it doesn't conflict with Ecmascript definition files.

Post a Comment for "Angular - Argument Of Type Is Not Assignable To Parameter"