The response types are only defined in the TS but not the JS. They don't belong in this code. They can be an example of how someone would extend this to track their own responses but should not be included here as they are not part of the public segment interface this is trying to communicate.
Also AllyRequests should not have all the lists be ?. If it does then the functions using it need guardslike
The response types are only defined in the TS but not the JS. They don't belong in this code. They can be an example of how someone would extend this to track their own responses but should not be included here as they are not part of the public segment interface this is trying to communicate.
Also
AllyRequests
should not have all the lists be?
. If it does then the functions using it need guardsliketo pass type safety. Instead of adding that everywhere we can just make them non optional and fix the init.