KamoCRM

Change-source maps are Partial<Record> so a section lookup may miss (TS2774)

Fixkamo-internal
Shipped
November 15, 2026 at 6:23 PM UTC
Author
Kamo
Commit
e94092a

An annotation `const restore: Restore | undefined = MAP[key]` is narrowed back to Restore by its initializer, so `restore ? … : null` still read as always true and failed the build. Typing the maps themselves as Partial makes every lookup honestly optional (Security, Phone & Text, Email, Smart Devices; CRM keeps its cast because its tests call entries directly).

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing