'await' has no effect on the type of this expression
I searched about this but I didn't find anything specific for what I need. If there is one, please, share here. I'm trying to create a generic service to be called in various components. Since it's a function that requests data from an external source, I need to treat it as an asynchronous function.