| ▲ | danpalmer 3 hours ago | |||||||||||||
If you want a fully built out network layer, with auth, logging, monitoring, policies, etc, then `fetch` doesn't really help. Axios and other libraries provide much more for building that sort of framework. | ||||||||||||||
| ▲ | internetter 3 hours ago | parent [-] | |||||||||||||
Any sufficiently competent typescript developer can build out an adhoc wrapper (that just inherits the type definition and passes along whatever it is passed after altering it however needed) in under a hour. It doesn't scale in the sense that you don't expose a configuration, but config as code is king. (Source: have built out much more scuffed variants of this than the one I just described like https://github.com/boehs/ajar) I guess a LLM can do as well. Although that's not something I'm quite ready to admit. | ||||||||||||||
| ||||||||||||||