mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 17:43:25 +00:00
switched to guider
This commit is contained in:
20
.docs/pages/api-reference/makeStandardFetcher.md
Normal file
20
.docs/pages/api-reference/makeStandardFetcher.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# `makeStandardFetcher`
|
||||
|
||||
Make a fetcher from a `fetch()` API. It is used for making an instance of provider controls.
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
import { targets, makeProviders, makeDefaultFetcher } from '@movie-web/providers';
|
||||
|
||||
const providers = makeProviders({
|
||||
fetcher: makeStandardFetcher(fetch),
|
||||
target: targets.ANY,
|
||||
});
|
||||
```
|
||||
|
||||
## Type
|
||||
|
||||
```ts
|
||||
function makeStandardFetcher(fetchApi: typeof fetch): Fetcher;
|
||||
```
|
Reference in New Issue
Block a user