Skip to content

Commit

Permalink
Merge pull request #154 from jkeam/feature/upgrade-deps
Browse files Browse the repository at this point in the history
feat(dependencies): upgrade dependencies and deprecated action type
  • Loading branch information
jkeam authored Dec 29, 2024
2 parents bce0911 + 068e338 commit 100fab0
Show file tree
Hide file tree
Showing 3 changed files with 7,287 additions and 5,151 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'reduxsauce' {
import { Action, AnyAction, Reducer, ActionCreator } from 'redux';
import { Action, UnknownAction, Reducer, ActionCreator } from 'redux';

export interface Actions {
[action: string]: (string[] | ActionTypes | ActionCreator<ActionTypes>) | null;
Expand All @@ -14,7 +14,7 @@ declare module 'reduxsauce' {
}

export interface DefaultActionCreators {
[action: string]: (...args: any[]) => AnyAction;
[action: string]: (...args: any[]) => UnknownAction;
}

export interface Handlers<S> {
Expand All @@ -40,7 +40,7 @@ declare module 'reduxsauce' {
options?: Options
): CreatedActions<T, C>;

export function createReducer<S = {}, A extends Action = AnyAction>(
export function createReducer<S = {}, A extends Action = UnknownAction>(
initialState: S,
handlers: Handlers<S>
): Reducer<S, A>;
Expand All @@ -49,9 +49,9 @@ declare module 'reduxsauce' {

export function resettableReducer(
typeToReset: string
): <S, A extends Action = AnyAction>(originalReducer: Reducer<S, A>) => Reducer<S, A>;
): <S, A extends Action = UnknownAction>(originalReducer: Reducer<S, A>) => Reducer<S, A>;

export function resettableReducer<S, A extends Action = AnyAction>(
export function resettableReducer<S, A extends Action = UnknownAction>(
typeToReset: string,
originalReducer: Reducer<S, A>
): Reducer<S, A>;
Expand Down
Loading

0 comments on commit 100fab0

Please sign in to comment.