{"action":"closed","issue":{"url":"https://api.github.com/repos/neurosnap/robodux/issues/3","repository_url":"https://api.github.com/repos/neurosnap/robodux","labels_url":"https://api.github.com/repos/neurosnap/robodux/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/neurosnap/robodux/issues/3/comments","events_url":"https://api.github.com/repos/neurosnap/robodux/issues/3/events","html_url":"https://github.com/neurosnap/robodux/issues/3","id":369650259,"node_id":"MDU6SXNzdWUzNjk2NTAyNTk=","number":3,"title":"Possibility to have actions get typed?","user":{"login":"venkatd","id":220686,"node_id":"MDQ6VXNlcjIyMDY4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/220686?v=4","gravatar_id":"","url":"https://api.github.com/users/venkatd","html_url":"https://github.com/venkatd","followers_url":"https://api.github.com/users/venkatd/followers","following_url":"https://api.github.com/users/venkatd/following{/other_user}","gists_url":"https://api.github.com/users/venkatd/gists{/gist_id}","starred_url":"https://api.github.com/users/venkatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venkatd/subscriptions","organizations_url":"https://api.github.com/users/venkatd/orgs","repos_url":"https://api.github.com/users/venkatd/repos","events_url":"https://api.github.com/users/venkatd/events{/privacy}","received_events_url":"https://api.github.com/users/venkatd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-12T17:52:46Z","updated_at":"2018-10-19T01:50:29Z","closed_at":"2018-10-19T01:50:29Z","author_association":"NONE","body":"Hi again. I'm pretty new to typescript so not sure if the following is possible.\r\n\r\nCurrently I am writing code like:\r\n`yield put( Reducer.actions.commandsLoaded(commands) )`\r\n\r\nand i my reducer I have something like the following:\r\n\r\n```javascript\r\nrobodux<StoreState>({\r\n  initialState: {commands: [], events: []},\r\n  actions: {\r\n    commandsLoaded(state: StoreState, commands: Command[]) {\r\n      pushMany(state.commands, commands)\r\n      return state\r\n  }\r\n```\r\n\r\nHowever, `Reducer.actions.` doesn't give me code completion. And when I type `Reducer.action.commandsLoaded` I don't get type signature or type checking.\r\n\r\nIt would be really cool if it were possible to have the type signatures flow through."}}
{"actor":{"display_login":"neurosnap"}}