mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:03:26 +00:00
Doc directory 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 providers with `makeProviders()`.
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
import { targets, makeProviders, makeDefaultFetcher } from "@movie-web/providers";
|
||||
|
||||
const providers = makeProviders({
|
||||
fetcher: makeDefaultFetcher(fetch),
|
||||
target: targets.NATIVE,
|
||||
});
|
||||
```
|
||||
|
||||
## Type
|
||||
|
||||
```ts
|
||||
function makeDefaultFetcher(fetchApi: typeof fetch): Fetcher;
|
||||
```
|
Reference in New Issue
Block a user