Skip to content

Releases: twop/ts-describe-action

v2.2.0

15 Jul 07:51
Compare
Choose a tag to compare
  • now action desc is an action creator b0fbdf7

v2.1.1...v2.2.0

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

14 Jul 03:28
Compare
Choose a tag to compare
  • updated scripts 3970f78
  • moved to pika/pack + simplified implementation 4fa5b75
  • fixed typings for union types A | B 54d37e9
  • tweaks in readme 06243a6

2.0.0...v2.1.1

Moved to ts 2.8.

10 Jun 22:56
Compare
Choose a tag to compare
  • Used ts 2.8 conditional types to remove describeSimple. Just use describeAction instead.
  • Reduced size by half :)