Explicitly enumerate the valid responses in a union type instead of adding boolean flags.
typeResponse = { fetched: boolean, errored: boolean, data?: Data }
constresponse: Response = // ⛔️ Error before fetch?!
{ fetched: false, errored: true, data: null }
// ⛔️ There are more combinations that don't make any sense.