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

HexbinHoverHandler typing incorrect #77

Open
timnyborg opened this issue Feb 21, 2023 · 0 comments
Open

HexbinHoverHandler typing incorrect #77

timnyborg opened this issue Feb 21, 2023 · 0 comments

Comments

@timnyborg
Copy link

While the HexbinHoverHandler mouseout and mouseover functions were updated in 6.0.1 to support events (b1f29b8), the typescript definitions were not:

leaflet-d3/index.d.ts

Lines 93 to 96 in 147ca3e

interface HexbinHoverHandler {
mouseover(hexLayer: HexbinLayer, data: any): void;
mouseout(hexLayer: HexbinLayer, data: any): void;
}

This causes typescript compilation errors: Type '(hexLayer: HexbinLayer, event: MouseEvent, data: any) => void' is not assignable to type '(hexLayer: HexbinLayer, data: any) => void'.

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

1 participant