mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 17:13:25 +00:00
Redo folder structure
This commit is contained in:
20
.docs/content/5.api-reference/7.makeStandardFetcher.md
Normal file
20
.docs/content/5.api-reference/7.makeStandardFetcher.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# `makeStandardFetcher`
|
||||
|
||||
Make a fetcher from a `fetch()` API. It is used for making a 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