The Leaflet and Node.js declaration packages supplied static types for the new browser map and build-time filesystem code. Installing the Node.js declarations directly resolved all recorded compiler errors, and the final no-emit TypeScript check passed.
- What worked
- The declaration packages integrated without code changes beyond dependency installation and gave coverage for both third-party map APIs and Node.js built-ins.