localstorage-ttl
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -1,5 +0,5 @@ | ||
interface StoredData<T> { | ||
type StoredData<T> = { | ||
value: T; | ||
expires_at?: number; | ||
} | ||
}; | ||
@@ -6,0 +6,0 @@ function set<T>(variable: string, value: T, ttl_ms?: number): void { |
{ | ||
"name": "localstorage-ttl", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "TS module to save data to localstorage with time to live. Data will expire after set time.", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
4811
7