diff --git a/packages/@uppy/store-default/src/index.ts b/packages/@uppy/store-default/src/index.ts index adc766045e..fb8a7fd950 100644 --- a/packages/@uppy/store-default/src/index.ts +++ b/packages/@uppy/store-default/src/index.ts @@ -7,7 +7,7 @@ export type GenericState = Record export type Listener = ( prevState: T, nextState: T, - patch: Partial, + patch?: Partial, ) => void /** @@ -24,7 +24,7 @@ class DefaultStore { return this.state } - setState(patch: Partial): void { + setState(patch?: Partial): void { const prevState = { ...this.state } const nextState = { ...this.state, ...patch }