Use a const type parameter on the exclude array so literal tuples narrow correctly. The return type now reflects the actual properties and their kinds (number/string/boolean) instead of Record<string, unknown>. Four call sites needed local casts where PROPS declares str but Leaflet expects a narrower type (crossOrigin, offset) — these are design-level mismatches between HTML attribute types and Leaflet's option types. |
||
|---|---|---|
| .. | ||
| components | ||
| core | ||
| types | ||
| index.ts | ||