UNPKG
abit-cache
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
React cache library from scratch
github.com/abtinMonsef/abit-cache
abtinMonsef/abit-cache
abit-cache
/
dist
/
cache
/
hooks
/
useQuery.d.ts
4 lines
(3 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
import
{
TCacheFetcher
,
TCacheOptions
,
TKey
,
TUseQueryReturn
}
from
'../types/cache-types'
;
declare
const
useQuery
: <
Data
>
(
key
:
TKey
,
fetcher
:
TCacheFetcher
<
Data
>,
options
?:
TCacheOptions
<
Data
>
) =>
TUseQueryReturn
<
Data
>;
export
default
useQuery;