Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit b93ca66

Browse files
committed
refactor: ♻️ added missing things in startingTemplate
1 parent e0240c8 commit b93ca66

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/// <reference types="react-scripts" />
2+
3+
// To solve the issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245
4+
/// <reference types="styled-components/cssprop" />

internals/startingTemplate/src/utils/redux-injectors.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ import {
1010

1111
/* Wrap redux-injectors with stricter types */
1212

13-
export function useInjectReducer<Key extends RootStateKeyType>({
14-
key,
15-
reducer,
16-
}: InjectReducerParams<Key>) {
17-
return useReducer({ key, reducer });
13+
export function useInjectReducer<Key extends RootStateKeyType>(
14+
params: InjectReducerParams<Key>,
15+
) {
16+
return useReducer(params);
1817
}
1918

20-
export function useInjectSaga({ key, saga, mode }: InjectSagaParams) {
21-
return useSaga({ key, saga, mode });
19+
export function useInjectSaga(params: InjectSagaParams) {
20+
return useSaga(params);
2221
}

0 commit comments

Comments
 (0)