🔧 improving typechecker and lint local performance (#4710)

This commit is contained in:
Matiss Janis Aboltins
2025-04-06 14:47:49 +01:00
committed by GitHub
parent 26ee3179e1
commit c4b4108eca
20 changed files with 99 additions and 101 deletions

View File

@@ -164,13 +164,16 @@ If the default bank integration does not work for you, you can integrate a new b
7. Remember to add tests for new bank integration in
## normalizeTransaction
This is the most commonly used override as it allows you to change the data that is returned to the client.
Please follow the following patterns when implementing a custom normalizeTransaction method:
1. If you need to edit the values of transaction fields (excluding the transaction amount) do not mutate the original transaction object. Instead, create a shallow copy and make your changes there.
2. End the function by returning the result of calling the fallback normalizeTransaction method from integration-bank.js
E.g.
```js
import Fallback from './integration-bank.js';