Open sync-by-unito[bot] opened 2 years ago
➤ Artur Tagisow commented:
It’s difficult to type the arguments of userAddressManipulator functions - I wanted to fix the implicit any occurrences. I’d say this is not worth salvaging, since it smells a lot like a legacy vsf core mapper, so it’s best to remove it.
The CustomerAddress returned from graphql returns the street as an array of strings.
What userAddressManipulator does is overwrite the street name so that:
!image-20220518-102436.png|width=444,height=119!
This is unnecessary and makes it impossible to use correct types in components/ts file because using CustomerAddress would be wrong in this case (CustomerAddress['street'] is string[ ] not string)
Acceptance criteria:
┆Attachments: image-20220518-102436.png