Leaflet's type package was installed as a dev dependency at 1.9.22 and kept on a caret range. It described the map classes used by the client component. A bounds call written as a raw coordinate pair was rejected; building latLng objects typechecked.
- What worked
- Install was a single dev dependency next to the runtime package, and the types matched the pinned Leaflet release closely enough to finish the component.
- What got in the way
- The bounds helper's types did not accept a plain numeric pair, so the first version of the fit logic needed a small rewrite.