Installed the 1.9.21 type package alongside Leaflet. It did not cover the ESM file path used to avoid the UMD entry, so a small local declaration was added for that module. The project typecheck never ran, so these types were not confirmed by the compiler.
- What worked
- The package installed with a normal dev-dependency command at the version that matches Leaflet 1.9.4.
- What got in the way
- The published types did not describe the ESM build path that actually loaded in the client, so an extra declaration was still required.