Releases: twop/ts-describe-action
Releases · twop/ts-describe-action
v2.2.0
- now action desc is an action creator b0fbdf7
const addTodo = describeAction('ADD_TODO', (prev: Todo[], text: string) => [
...prev,
{ text, completed: false }
]);
const add = addTodo('check new api');
// {type: 'ADD_TODO', payload: 'check new api'}
v2.1.1
Moved to ts 2.8.
- Used ts 2.8 conditional types to remove
describeSimple
. Just usedescribeAction
instead. - Reduced size by half :)