Skip to content

Instantly share code, notes, and snippets.

@carlrip
Created February 3, 2019 10:17
Show Gist options
  • Save carlrip/b15e71c1db19bd635b445665974a1cf4 to your computer and use it in GitHub Desktop.
Save carlrip/b15e71c1db19bd635b445665974a1cf4 to your computer and use it in GitHub Desktop.
React Redux State with TypeScript
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