Closed
Description
Since version 5.0.21
I'm getting the following TypeScript error when compiling:
node_modules/@uirouter/core/lib/vanilla/baseLocationService.d.ts:43:5 - error TS2416: Property 'onChange' in type 'BaseLocationServices' is not assignable to the same property in base type 'LocationServices'.
Type '(cb: EventListener) => () => Function[]' is not assignable to type '(callback: Function) => Function'.
Types of parameters 'cb' and 'callback' are incompatible.
Type 'Function' is not assignable to type 'EventListener'.
Type 'Function' provides no match for the signature '(evt: Event): void'.
43: onChange(cb: EventListener): () => Function[];
~~~~~~~~
Is there something wrong with my configuration or my imports? It worked with 5.0.20
.
Seems like the change was made in 095f531 .
Metadata
Metadata
Assignees
Labels
No labels