[leaflet.locatecontrol] has an incorrect type in interface LocateOptions #69138
Unanswered
miklcct
asked this question in
Issues with a @types package
Replies: 1 comment
-
Thanks for the discussion about "leaflet.locatecontrol", some useful links for everyone: Pinging the DT module owners: @DenisCarriere. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the type package,
LocateOptions.createButtonCallback
has type((container: HTMLDivElement, options: LocateOptions) => void) | undefined
, but in the source code, it says that the function "should return an object with HtmlElement for the button (link property) and the icon (icon property)."As a result, TypeScript doesn't do the type check properly on the callback passed into the object.
Beta Was this translation helpful? Give feedback.
All reactions