Skip to content

Commit

Permalink
Merge pull request #5 from convoyinc/arama/flush-array
Browse files Browse the repository at this point in the history
Fix flush type (again)
  • Loading branch information
arama-convoy authored May 16, 2023
2 parents 70f76c0 + 22d3a20 commit f2c9a20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion es/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare module "redux-persist" {
rehydrate<State>(incoming: State, options: RehydrateOptions): undefined;
pause(): void;
resume(): void;
flush(): Promise<any>;
flush(): Promise<any>[];
}

export type StateReconciler<PrevState, InboundState, NextState> = (state: PrevState, inboundState: InboundState, reducedState: any, log: boolean) => NextState;
Expand Down
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare module "redux-persist" {
rehydrate<State>(incoming: State, options: RehydrateOptions): undefined;
pause(): void;
resume(): void;
flush(): Promise<any>;
flush(): Promise<any>[];
}

export type StateReconciler<PrevState, InboundState, NextState> = (state: PrevState, inboundState: InboundState, reducedState: any, log: boolean) => NextState;
Expand Down
2 changes: 1 addition & 1 deletion type-definitions/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare module "redux-persist" {
rehydrate<State>(incoming: State, options: RehydrateOptions): undefined;
pause(): void;
resume(): void;
flush(): Promise<any>;
flush(): Promise<any>[];
}

export type StateReconciler<PrevState, InboundState, NextState> = (state: PrevState, inboundState: InboundState, reducedState: any, log: boolean) => NextState;
Expand Down

0 comments on commit f2c9a20

Please sign in to comment.