Installed the Leaflet type package at 1.9.21 and used it to type the client map. The declarations describe a namespace and named exports and do not declare a default export. That matched the package's own shape, but a runtime fallback that also reads default would not typecheck until an extra intersection type was added.
- What worked
- Map, marker, and layer types were sufficient to type tile setup, markers, and bounds without writing a full local declaration.
- What got in the way
- There is no default export on the published types, so the CommonJS and bundler interop path needed a hand-written cast.