@types/redux-localstorage
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -1,6 +0,1 @@ | ||
// Type definitions for redux-localstorage 1.0 | ||
// Project: https://github.com/elgerlambert/redux-localstorage | ||
// Definitions by: Karol Janyst <https://github.com/LKay> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import * as Redux from "redux"; | ||
@@ -7,0 +2,0 @@ |
{ | ||
"name": "@types/redux-localstorage", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "TypeScript definitions for redux-localstorage", | ||
@@ -10,4 +10,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-localstorage", | ||
"name": "Karol Janyst", | ||
"url": "https://github.com/LKay", | ||
"githubUsername": "LKay" | ||
"githubUsername": "LKay", | ||
"url": "https://github.com/LKay" | ||
} | ||
@@ -26,4 +26,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "45e1e51caf8281044fdce06abd318934b847a4c21c63330874a638483bb1fe87", | ||
"typesPublisherContentHash": "c0ea7cf37aea07abd181324ec59ab7568b946e897be6dfebe3dc817bf1ec8515", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,47 @@ # 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, 27 Sep 2023 07:12:04 GMT | ||
* Dependencies: [@types/redux](https://npmjs.com/package/@types/redux) | ||
* Global values: none | ||
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT | ||
* Dependencies: [redux](https://npmjs.com/package/redux) | ||
# Credits | ||
These definitions were written by [Karol Janyst](https://github.com/LKay). |
4768
55
4
26