File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,10 @@ const UPDATE_BASE_VALUE = 'currencyConverter/UPDATE_BASE_VALUE';
88const UPDATE_TARGET_VALUE = 'currencyConverter/UPDATE_TARGET_VALUE' ;
99
1010// Action Creators
11- export const updateBaseCurrency = createAction ( UPDATE_BASE_CURRENCY , ( event ) => {
12- return event . target . value ;
13- } ) ;
14- export const updateTargetCurrency = createAction ( UPDATE_TARGET_CURRENCY , ( event ) => {
15- return event . target . value ;
16- } ) ;
17- export const updateBaseValue = createAction ( UPDATE_BASE_VALUE , ( event ) => {
18- return event . target . value ;
19- } ) ;
20- export const updateTargetValue = createAction ( UPDATE_TARGET_VALUE , ( event ) => {
21- return event . target . value ;
22- } ) ;
11+ export const updateBaseCurrency = createAction < string > ( UPDATE_BASE_CURRENCY ) ;
12+ export const updateTargetCurrency = createAction < string > ( UPDATE_TARGET_CURRENCY ) ;
13+ export const updateBaseValue = createAction < number > ( UPDATE_BASE_VALUE ) ;
14+ export const updateTargetValue = createAction < number > ( UPDATE_TARGET_VALUE ) ;
2315
2416// Reducer
2517const initialState = Immutable ( {
You can’t perform that action at this time.
0 commit comments