DEV Community

loading...

Discussion on: Two Simple Tricks for Typing Redux Apps with Typescript

Collapse
markerikson profile image
Mark Erikson

Hmm. Yeah, we show inferring RootState from the root reducer in our docs, but we normally show explicitly writing out slice reducer state types. Obviously you can infer that from the initial state, we just hadn't shown that specifically. Could probably throw a line into the docs mentioning that.

FWIW, our TS docs are here: