mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
423 B
423 B
makeStandardFetcher
Make a fetcher from a fetch() API. It is used for making a instance of providers with makeProviders().
Example
import { targets, makeProviders, makeDefaultFetcher } from "@movie-web/providers";
const providers = makeProviders({
fetcher: makeDefaultFetcher(fetch),
target: targets.NATIVE,
});
Type
function makeDefaultFetcher(fetchApi: typeof fetch): Fetcher;