UNPKG
mini-fetchy
Version:
latest (1.2.0)
1.2.0
1.0.2
1.0.1
1.0.0
Custom fetch client for reusable HTTP calls
mini-fetchy
/
dist
/
index.d.ts
8 lines
(7 loc)
•
238 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
type
FetchOptions
= {
baseUrl
?:
string
;
headers
?:
Record
<
string
,
string
>;
timeout
?:
number
; };
export
declare
const
createFetchClient
:
(
config
:
FetchOptions
) =>
(
url
:
string
,
options
?:
RequestInit
) =>
Promise
<
any
>;
export
{};