@uppy/store-redux
Advanced tools
Comparing version
@@ -7,3 +7,3 @@ let _Symbol$for; | ||
const packageJson = { | ||
"version": "3.0.4" | ||
"version": "3.0.5" | ||
}; // Redux action name. | ||
@@ -10,0 +10,0 @@ export const STATE_UPDATE = 'uppy/STATE_UPDATE'; |
{ | ||
"name": "@uppy/store-redux", | ||
"description": "Make Uppy use your existing Redux store.", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -5,3 +5,7 @@ import type { Store } from '@uppy/utils' | ||
type State = Record<string, unknown> | ||
type StateChangeListener = (prevState: State, nextState: State, patch: State) => void | ||
type StateChangeListener = ( | ||
prevState: State, | ||
nextState: State, | ||
patch: State, | ||
) => void | ||
@@ -15,9 +19,9 @@ interface ReduxStoreOptions { | ||
export class ReduxStore implements Store { | ||
constructor (opts: ReduxStoreOptions) | ||
constructor(opts: ReduxStoreOptions) | ||
getState (): State | ||
getState(): State | ||
setState (patch: State): void | ||
setState(patch: State): void | ||
subscribe (listener: StateChangeListener): () => void | ||
subscribe(listener: StateChangeListener): () => void | ||
} | ||
@@ -24,0 +28,0 @@ |
21327
0.02%305
1.33%