Created
February 3, 2019 10:17
-
-
Save carlrip/b15e71c1db19bd635b445665974a1cf4 to your computer and use it in GitHub Desktop.
React Redux State with TypeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IPeopleState { | |
readonly people: IPerson[]; | |
readonly loading: boolean; | |
readonly posting: boolean; | |
} | |
export interface IAppState { | |
readonly peopleState: IPeopleState; | |
} | |
const initialPeopleState: IPeopleState = { | |
people: [], | |
loading: false, | |
posting: false, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment