Skip to content

Instantly share code, notes, and snippets.

View ioffikus's full-sized avatar
🏠
Working from home

Evgeniy ioffikus

🏠
Working from home
View GitHub Profile
@ioffikus
ioffikus / redux-actions.ts
Created March 28, 2018 10:07 — forked from milankorsos/redux-actions.ts
Correct TypeScript typing example for Redux Thunk actions
import {Action, ActionCreator, Dispatch} from 'redux';
import {ThunkAction} from 'redux-thunk';
// Redux action
const reduxAction: ActionCreator<Action> = (text: string) => {
return {
type: SET_TEXT,
text
};
};