← Back to work

Open source / TypeScript

hero-actionsLess repetition. More intent.

A library for typed Redux actions and reducers, with a small, composable API.

npm package
actions.tsTS
const createAction =
createActionForPayloads<Payloads>();

export const setDirection =
createAction("direction/set");

// Clear intent. Typed by design.
hero-actions↗TYPE-SAFE. BY DESIGN.

The context

State management can accumulate repetitive code and implicit contracts. hero-actions makes the relationship between action types, payloads and reducers explicit.

My contribution

I designed and developed the library, documentation and an example app. Its action and handler factories use TypeScript inference and integrate with Redux and Redux Toolkit. This website also uses it for navigation, preferences and contact form state.

More work

The next step

Where shall we begin?

An idea to clarify, a product to improve or a team to support. Tell me where you are starting.

Let’s talkopentrentuno@gmail.com