Rather than the user of the library having to handle the optional Data? in the .http error type, it would be good to potentially allow the Resource to specify a generic type for the error response to be decoded, or a function that it can be passed through.
Rather than the user of the library having to handle the optional
Data?in the.httperror type, it would be good to potentially allow the Resource to specify a generic type for the error response to be decoded, or a function that it can be passed through.