You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we depend on node-fetch to define the IFetchInterface, which is commonly used across WKC. I wanted to discuss the idea of keeping a minimal interface here and then extend this interface in the fetcher(s) package(s).
which is a contract simple enough to be implemented with undici or node-fetch or whatever, and perhaps the fetch package could define its own interface according to the underline implementation. Wdyt? @menduz@marianogoldman@aleortega
The text was updated successfully, but these errors were encountered:
I like the idea, also I would like to adapt the fetch from WKC to return this FetchResponse in case of error instead of throwing since we are seeing more use cases where that is needed to prevent re-work of handling.
Currently, we depend on node-fetch to define the IFetchInterface, which is commonly used across WKC. I wanted to discuss the idea of keeping a minimal interface here and then extend this interface in the fetcher(s) package(s).
We could define something like:
which is a contract simple enough to be implemented with undici or node-fetch or whatever, and perhaps the fetch package could define its own interface according to the underline implementation. Wdyt? @menduz @marianogoldman @aleortega
The text was updated successfully, but these errors were encountered: