localvalue-ts
Advanced tools
Comparing version 1.1.0-beta.6 to 1.1.0-beta.7
@@ -17,8 +17,9 @@ import { Codec, errorType, runtimeType } from "./Codec"; | ||
}; | ||
export declare type LocalValueModifiers<K> = { | ||
getValue: () => LocalValue<errorType<K>, runtimeType<K>>; | ||
setValue: (v: runtimeType<K>) => void; | ||
removeValue: () => void; | ||
}; | ||
export declare type StorageInstance<S> = S extends StorageDef<infer K> ? { | ||
[k in K]: { | ||
getValue: () => LocalValue<errorType<S[k]>, runtimeType<S[k]>>; | ||
setValue: (v: runtimeType<S[k]>) => void; | ||
removeValue: () => void; | ||
}; | ||
[k in K]: LocalValueModifiers<S[k]>; | ||
} : never; | ||
@@ -25,0 +26,0 @@ export declare type RuntimeValues<S> = S extends StorageDef<infer K> ? { |
{ | ||
"name": "localvalue-ts", | ||
"version": "1.1.0-beta.6", | ||
"version": "1.1.0-beta.7", | ||
"description": "A small library to wrap browser's localstorage in a functional fashion.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26450
497