Update TypeScript API

- allow state params definitions as an array or object
- add missing reloadOnSearch field
- simplify ITypedState interface
- fix a whitespace consistency issue