import { Action, ActionCreator } from 'redux'; export const INCREMENT = 'INCREMENT'; export const DECREMENT = 'DECREMENT'; export interface IncrementAction extends Action { type: 'INCREMENT'; } export interface DecrementAction extends Action { type: 'DECREMENT'; } export const increment: ActionCreator = () => ({ type: INCREMENT }); export const decrement: ActionCreator = () => ({ type: DECREMENT }); export type CounterAction = IncrementAction | DecrementAction;