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?
No there's no additional response filter for all DTO responses and APIs can return a number of different response Types not just DTOs,
You'd need to wrap calls to the client APIs to go via your own custom API method that you'd call instead.