{"action":"created","issue":{"url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide/issues/85","repository_url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide","labels_url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide/issues/85/comments","events_url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide/issues/85/events","html_url":"https://github.com/piotrwitek/react-redux-typescript-guide/issues/85","id":344367040,"node_id":"MDU6SXNzdWUzNDQzNjcwNDA=","number":85,"title":"Help me understand 'Types.RootState'","user":{"login":"kilgarenone","id":6169811,"node_id":"MDQ6VXNlcjYxNjk4MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/6169811?v=4","gravatar_id":"","url":"https://api.github.com/users/kilgarenone","html_url":"https://github.com/kilgarenone","followers_url":"https://api.github.com/users/kilgarenone/followers","following_url":"https://api.github.com/users/kilgarenone/following{/other_user}","gists_url":"https://api.github.com/users/kilgarenone/gists{/gist_id}","starred_url":"https://api.github.com/users/kilgarenone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilgarenone/subscriptions","organizations_url":"https://api.github.com/users/kilgarenone/orgs","repos_url":"https://api.github.com/users/kilgarenone/repos","events_url":"https://api.github.com/users/kilgarenone/events{/privacy}","received_events_url":"https://api.github.com/users/kilgarenone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-25T09:36:34Z","updated_at":"2019-02-03T11:21:22Z","closed_at":"2018-07-25T10:25:19Z","author_association":"NONE","body":"Sorry if this was a dump question- In [this connected component](https://github.com/piotrwitek/react-redux-typescript-guide/blob/master/playground/src/connected/sfc-counter-connected.tsx), I'm confused about the `Types` and `Types.RootState`. Is the `Types` a npm package cuz it doesn't seem to be in the `package.json`?"},"comment":{"url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide/issues/comments/460043152","html_url":"https://github.com/piotrwitek/react-redux-typescript-guide/issues/85#issuecomment-460043152","issue_url":"https://api.github.com/repos/piotrwitek/react-redux-typescript-guide/issues/85","id":460043152,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MDA0MzE1Mg==","user":{"login":"chawax","id":5655399,"node_id":"MDQ6VXNlcjU2NTUzOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/5655399?v=4","gravatar_id":"","url":"https://api.github.com/users/chawax","html_url":"https://github.com/chawax","followers_url":"https://api.github.com/users/chawax/followers","following_url":"https://api.github.com/users/chawax/following{/other_user}","gists_url":"https://api.github.com/users/chawax/gists{/gist_id}","starred_url":"https://api.github.com/users/chawax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chawax/subscriptions","organizations_url":"https://api.github.com/users/chawax/orgs","repos_url":"https://api.github.com/users/chawax/repos","events_url":"https://api.github.com/users/chawax/events{/privacy}","received_events_url":"https://api.github.com/users/chawax/received_events","type":"User","site_admin":false},"created_at":"2019-02-03T11:21:22Z","updated_at":"2019-02-03T11:21:22Z","author_association":"NONE","body":"Something like that ?\r\n\r\n`types/index.d.ts` file : \r\n\r\n```\r\nimport { IState as AuthState } from '../redux/AuthRedux'\r\n\r\nexport interface RootState {\r\n  readonly auth: AuthState;\r\n}\r\n```\r\n\r\nwith `AuthState` defined in my `AuthRedux` file\r\n\r\nThen :\r\n\r\n```\r\nimport { RootState } from '../types';\r\n\r\nconst mapStateToProps = (state: RootState) => ({\r\n  isAuthenticated: state.auth.isAuthenticated,\r\n})\r\n```"}}
{"actor":{"display_login":"chawax"}}