landvibe
1 min readMay 6, 2018

--

Thank you for sharing this wonderful article!

I have a question on state type.

I think initialState is not enough to make the state type.

For example,

const initialState = {v1: 0, v2: undefined};

How can I make v1: number | string and v2: undefined | number ?

--

--

No responses yet