Files
twenty/packages/twenty-server
Claude 9e7ff0a6c1 Remove unsafe type assertions and manual typeof checks across frontend and server
Frontend:
- useExportProcessRecordsForCSV: add isFieldCurrencyValue guard for
  currency record values instead of unvalidated property access
- PhonesDisplay: replace typeof === 'object' with Array.isArray in
  parseAdditionalPhones, use unknown instead of any

Server:
- Remove redundant `as string[]` casts in calendar and messaging
  person listeners (6 instances) - type already narrowed by ?? []
- compute-changed-additional-emails: remove as string[] casts,
  let Array.isArray narrow the type
- transform-emails-value: remove as string[] after JSON.parse,
  rely on isNonEmptyArray for runtime validation
- find-person-by-primary-or-additional-email: use isNonEmptyArray
  from twenty-shared instead of Array.isArray
- create-company-and-contact.service: same isNonEmptyArray fix

https://claude.ai/code/session_01K2CBC59gYw93d8YVQm3mXX
2026-04-09 20:50:19 +00:00
..
2026-04-02 11:20:08 +00:00
2026-04-02 11:20:08 +00:00
2026-04-02 11:20:08 +00:00
2026-04-02 11:20:08 +00:00