Returns an implementation of CustomFetch that uses the global fetch function(s). This is convenient for writing testable code: a class can accept a CustomFetch instance for testing and for production.
CustomFetch
Returns an implementation of
CustomFetch
that uses the global fetch function(s). This is convenient for writing testable code: a class can accept aCustomFetch
instance for testing and for production.