Skip to content

Commit 1ca950b

Browse files
committed
Remove some T's
1 parent 35595ad commit 1ca950b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

extend-redux.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ThunkAction } from './src/index';
1+
import { ThunkAction } from './src/index'
22

33
/**
44
* Globally alter the Redux `bindActionCreators` and `Dispatch` types to assume
@@ -16,27 +16,27 @@ declare module 'redux' {
1616
* from thunk actions
1717
*/
1818
function bindActionCreators<
19-
TActionCreators extends ActionCreatorsMapObject<any>
19+
ActionCreators extends ActionCreatorsMapObject<any>
2020
>(
21-
actionCreators: TActionCreators,
22-
dispatch: Dispatch,
21+
actionCreators: ActionCreators,
22+
dispatch: Dispatch
2323
): {
24-
[TActionCreatorName in keyof TActionCreators]: ReturnType<
25-
TActionCreators[TActionCreatorName]
24+
[ActionCreatorName in keyof ActionCreators]: ReturnType<
25+
ActionCreators[ActionCreatorName]
2626
> extends ThunkAction<any, any, any, any>
2727
? (
28-
...args: Parameters<TActionCreators[TActionCreatorName]>
29-
) => ReturnType<ReturnType<TActionCreators[TActionCreatorName]>>
30-
: TActionCreators[TActionCreatorName];
31-
};
28+
...args: Parameters<ActionCreators[ActionCreatorName]>
29+
) => ReturnType<ReturnType<ActionCreators[ActionCreatorName]>>
30+
: ActionCreators[ActionCreatorName]
31+
}
3232

3333
/*
3434
* Overload to add thunk support to Redux's dispatch() function.
3535
* Useful for react-redux or any other library which could use this type.
3636
*/
3737
export interface Dispatch<A extends Action = AnyAction> {
38-
<TReturnType = any, TState = any, TExtraThunkArg = any>(
39-
thunkAction: ThunkAction<TReturnType, TState, TExtraThunkArg, A>,
40-
): TReturnType;
38+
<ReturnType = any, State = any, ExtraThunkArg = any>(
39+
thunkAction: ThunkAction<ReturnType, State, ExtraThunkArg, A>
40+
): ReturnType
4141
}
4242
}

0 commit comments

Comments
 (0)