Context
Follow-up from review of #1275.
Pre-existing any in the two production files this PR touches. The PR does not introduce them; they still need to be reported because those files are in the diff.
Evidence
src/screens/payment-link.screen.tsx:393, :511, :531 — ].filter((item) => item.text) as any
src/screens/payment-routes.screen.tsx:170 — updatePaymentLinksConfig(data: any)
:464, :602, :689 — same as any filter
:896 — onSubmit?: (data: any) => Promise<void>
:993 — (mergedData as any)[key] = value
:1023 — const request: any = {}
Suggested fix
Filter expansion items with the real component prop type and a type predicate. Type form submission and request construction with the SDK DTOs or Partial<…>; merge config through typed keys.
Related
Context
Follow-up from review of #1275.
Pre-existing
anyin the two production files this PR touches. The PR does not introduce them; they still need to be reported because those files are in the diff.Evidence
src/screens/payment-link.screen.tsx:393,:511,:531—].filter((item) => item.text) as anysrc/screens/payment-routes.screen.tsx:170—updatePaymentLinksConfig(data: any):464,:602,:689— sameas anyfilter:896—onSubmit?: (data: any) => Promise<void>:993—(mergedData as any)[key] = value:1023—const request: any = {}Suggested fix
Filter expansion items with the real component prop type and a type predicate. Type form submission and request construction with the SDK DTOs or
Partial<…>; merge config through typed keys.Related