makeStandardFetcher

Make a fetcher from a fetch() API. It is used for making an instance of provider controls.

Example

import { targets, makeProviders, makeDefaultFetcher } from '@movie-web/providers';

const providers = makeProviders({
  fetcher: makeStandardFetcher(fetch),
  target: targets.ANY,
});

Type

function makeStandardFetcher(fetchApi: typeof fetch): Fetcher;
Table of Contents