mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
fix indentation
This commit is contained in:
@@ -16,7 +16,7 @@ const incrementAction: (...args: any[]) => ReduxActions.Action = ReduxActions.cr
|
||||
);
|
||||
const action: ReduxActions.Action = incrementAction(42);
|
||||
|
||||
const incrementByAction: (...args: any[]) => ReduxActions.Action = ReduxActions.createAction<number>(
|
||||
const incrementByAction: (...args: any[]) => ReduxActions.Action = ReduxActions.createAction<number>(
|
||||
'INCREMENT_BY',
|
||||
(amount: number) => amount,
|
||||
amount => ({ remote: true })
|
||||
@@ -30,7 +30,6 @@ const actionHandler = ReduxActions.handleAction<number>(
|
||||
);
|
||||
state = actionHandler(0, { type: 'INCREMENT' });
|
||||
|
||||
|
||||
const actionHandlerWithReduceMap = ReduxActions.handleAction<number>(
|
||||
'INCREMENT_BY', {
|
||||
next(state: number, action: ReduxActions.Action) {
|
||||
@@ -54,3 +53,4 @@ const actionsHandlerWithInitialState = ReduxActions.handleActions<number>({
|
||||
state = actionsHandlerWithInitialState(0, { type: 'INCREMENT' });
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user