@uppy/store-default
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -5,3 +5,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
const packageJson = { | ||
"version": "3.0.4" | ||
"version": "3.0.5" | ||
}; | ||
@@ -8,0 +8,0 @@ /** |
{ | ||
"name": "@uppy/store-default", | ||
"description": "The default simple object-based store for Uppy.", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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 | ||
export default class DefaultStore implements Store { | ||
constructor () | ||
constructor() | ||
getState (): State | ||
getState(): State | ||
setState (patch: State): void | ||
setState(patch: State): void | ||
subscribe (listener: StateChangeListener): () => void | ||
subscribe(listener: StateChangeListener): () => void | ||
} |
11312
138