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
/
useRevalidate.d.ts
7 lines
(6 loc)
•
248 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
TUseRevalidateParams
}
from
'../types/cache-types'
;
declare
const
useRevalidate
: <
Data
>
(
params
:
TUseRevalidateParams
<
Data
>
) =>
{
revalidate
:
() =>
Promise
<
void
>;
clearErrorRetryTimeout
:
() =>
void
; };
export
default
useRevalidate;