UNPKG
@epic-web/cachified
Version:
latest (5.6.2)
5.6.2
5.6.1
5.6.0
5.5.3
5.5.2
5.5.1
5.5.0
5.4.0
5.3.0
5.2.1
5.2.0
5.1.3
5.1.2
5.1.1
5.1.0
5.0.0
4.0.0
3.5.5
neat wrapper for various caches
github.com/epicweb-dev/cachified
epicweb-dev/cachified
@epic-web/cachified
/
dist
/
src
/
assertCacheEntry.d.ts
7 lines
(6 loc)
•
244 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
CacheMetadata
}
from
'./common'
;
export
declare
function
logKey
(
key
?:
string
):
string
;
export
declare
function
assertCacheEntry
(
entry
:
unknown
,
key
?:
string
): asserts entry is {
metadata
:
CacheMetadata
;
value
:
unknown
; };