UNPKG

hero-actions

Version:

A TypeScript library for creating type-safe Redux action creators and reducers with minimal boilerplate.

8 lines 228 B
export type Action<T extends string> = { type: T; }; export type ActionWithPayload<T extends string, P> = Action<T> & { payload: P; }; export type PayloadsTree = Record<string, any>; //# sourceMappingURL=actions.d.ts.map