UNPKG
solid-request
Version:
latest (1.2.0)
1.2.0
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.0
1.0.0
solid-js use-request hooks library
github.com/NelsonYong/solid-request
NelsonYong/solid-request
solid-request
/
dist
/
types
/
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 };