mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
Write more documentation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# `makeStandardFetcher`
|
||||
|
||||
Make a fetcher from a `fetch()` API. It is used for making a instance of providers with `makeProviders()`.
|
||||
Make a fetcher from a `fetch()` API. It is used for making a instance of provider controls.
|
||||
|
||||
## Example
|
||||
|
||||
@@ -8,13 +8,13 @@ Make a fetcher from a `fetch()` API. It is used for making a instance of provide
|
||||
import { targets, makeProviders, makeDefaultFetcher } from "@movie-web/providers";
|
||||
|
||||
const providers = makeProviders({
|
||||
fetcher: makeDefaultFetcher(fetch),
|
||||
target: targets.NATIVE,
|
||||
fetcher: makeStandardFetcher(fetch),
|
||||
target: targets.ANY,
|
||||
});
|
||||
```
|
||||
|
||||
## Type
|
||||
|
||||
```ts
|
||||
function makeDefaultFetcher(fetchApi: typeof fetch): Fetcher;
|
||||
function makeStandardFetcher(fetchApi: typeof fetch): Fetcher;
|
||||
```
|
||||
|
Reference in New Issue
Block a user