Socket
Socket
Sign inDemoInstall

@types/redux-localstorage

Package Overview
Dependencies
6
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.10 to 1.0.11

redux-localstorage/lib/adapters/AsyncStorage.d.ts

4

redux-localstorage/package.json
{
"name": "@types/redux-localstorage",
"version": "1.0.10",
"version": "1.0.11",
"description": "TypeScript definitions for redux-localstorage",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-localstorage",

},
"typesPublisherContentHash": "c0ea7cf37aea07abd181324ec59ab7568b946e897be6dfebe3dc817bf1ec8515",
"typesPublisherContentHash": "5540c8b56669876a17d33e05fec93fe5a762c1dffd13c0feca315080c9784d40",
"typeScriptVersion": "4.5"
}

@@ -9,44 +9,5 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-localstorage.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-localstorage/index.d.ts)
````ts
import * as Redux from "redux";
export interface ActionTypes {
INIT: string;
}
export type AdapterCallback = <A>(err?: any, result?: A) => void;
export interface StorageAdapter<A> {
0: A;
put(key: string, value: any, callback: AdapterCallback): void;
get(key: string, callback: AdapterCallback): void;
del(key: string, callback: AdapterCallback): void;
}
export type StorageAdapterCreator<A> = (storage: A) => StorageAdapter<A>;
export interface StorageAdapterEnhancer {}
export function mergePersistedState(
merge?: <A1, A2>(initialState: A1, persistentState: A2) => A1 & A2,
): <A>(next: Redux.Reducer<A>) => Redux.Reducer<A>;
export default function persistState<A>(
storage?: StorageAdapter<A>,
key?: string,
callback?: Function,
): Redux.GenericStoreEnhancer;
export function transformState<A1, A2>(
down: ((state: A1) => A2) | Array<(state: any) => any>,
up: ((state: A2) => A1) | Array<(state: any) => any>,
): (storage: StorageAdapter<A1>) => A2;
export const actionTypes: ActionTypes;
````
### Additional Details
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
* Last updated: Wed, 18 Oct 2023 18:04:04 GMT
* Dependencies: [redux](https://npmjs.com/package/redux)

@@ -53,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc