I’m looking to mark a range of different server response DTO’s with an interface that defines a known property (eg. UserFacingMessage), and then have my ts client handle that in a centralized place (eg. to show a toast message popup) without each API callsite having to worry about it.
I was hoping the JsonServiceClient.responseFilter would allow for this, but I can only get to the raw response, not the typed DTO.
Is there another mechanism to access typed DTO responses centrally?