Socket
Socket
Sign inDemoInstall

localvalue-ts

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localvalue-ts - npm Package Compare versions

Comparing version 1.1.0-beta.6 to 1.1.0-beta.7

11

localStorage.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc