typescript-fsa
typescript-fsa copied to clipboard
Type-safe action creator utilities
*** βοΈ **Important announcement:** Greenkeeper will be saying goodbye π and passing the torch to Snyk on June 3rd, 2020! [Find out how to migrate to Snyk and more at...
Proposed fix for #81
Bug: can't create an action without payload. 'ActionCreator<void>' is not assignable to '() => void'
Here's a rough example: ``` // actions.ts import actionCreatorFactory from 'typescript-fsa'; const actionCreator = actionCreatorFactory('tasks'); export const allDone = actionCreator('MARK_ALL_DONE'); export const markDone = actionCreator('MARK_DONE'); // Tasks.tsx interface ITasksProps =...
## The devDependency [rimraf](https://github.com/isaacs/rimraf) was updated from `2.7.1` to `3.0.1`. This version is **not covered** by your **current version range**. If you donβt accept this pull request, your project will...
I would appreciate the ability to add an optional parameter for mapping the values of an action's payload. This would be useful, for example, for dispatching notifications and assigning them...
Hi, I've just tried updating to TS 3.0.1 and ts-fsa 3.0.0-beta-2, i previously had this generic reducer... ```typescript const mergeResultIntoIndex = (state: Indexed, {result}: Success): Indexed => { return {...
Hi there- Issue: I am unable to pass a TypeScript Type for the `meta` object that an `actionCreator` produces. ---- Example: I want to create async actions for an event...
It would be nice to have an examples folder with a real redux app with all the various ways this can be used and best practices, Esp async stuff. My...
From the [`flux-standard-action`](https://github.com/acdlite/flux-standard-action#errors-as-a-first-class-concept) repo: > Flux actions can be thought of as an asynchronous sequence of values. It is important for asynchronous sequences to deal with errors. Currently, many Flux...
My package, `typescript-fsa-redux-thunk` and my attempts to refactor it have failed, and this also affects `typescript-fsa-reducers`. The best way to explain the errors I'm getting is to post a test...