Build fails because dist directory is not exclude from compilation (and d.ts declarations files are typescript files)
Generic type in actionCreatorsFor is usefull for typescript users.
I exposed your "types" in index file to be able to use them to type some variables in user code. In addition I added a simple "Record" interface with all default constants used in reducers. Record interface can't be used in internal code because constants are configurable.
Build fails because dist directory is not exclude from compilation (and d.ts declarations files are typescript files)
Generic type in actionCreatorsFor is usefull for typescript users. I exposed your "types" in index file to be able to use them to type some variables in user code. In addition I added a simple "Record" interface with all default constants used in reducers. Record interface can't be used in internal code because constants are configurable.