UNPKG
ht_hooks
Version:
latest (0.1.1)
0.1.1
0.1.0
ht React 业务 Hooks
github.com/MengToong/ht_hooks
MengToong/ht_hooks
ht_hooks
/
es
/
useRequest
/
src
/
utils
/
cachePromise.d.ts
5 lines
(4 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
5
type
CachedKey
=
string
|
number
;
declare
const
getCachePromise
:
(
cacheKey
:
CachedKey
) =>
Promise
<
any
> |
undefined
;
declare
const
setCachePromise
:
(
cacheKey
:
CachedKey
,
promise
:
Promise
<
any
>
) =>
void
;
export
{ getCachePromise, setCachePromise };