[Tech Debt]: interface all data arrays #3085
Labels
good first issue
Good for newcomers
low-prio
technical debt
This issue involves deferred engineering work
What is needed?
A common code pattern in React is to code an array of curly-brace objects within a React functional component and map over that data to create child elements to render in the DOM. This can cause surprise TS linting issues when one data type is mixed (eg, can be either type
JSX.element
orstring
). All data arrays in the app, even if they are only used locally, should have a shape explicitly described by an interface. Example below from theTransactionDetailsSimplify.tsx
file:The text was updated successfully, but these errors were encountered: