{"action":"closed","issue":{"url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/47","repository_url":"https://api.github.com/repos/piotrwitek/typesafe-actions","labels_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/47/comments","events_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/47/events","html_url":"https://github.com/piotrwitek/typesafe-actions/issues/47","id":326799543,"number":47,"title":"Type inference issue for \"createAction\" API","user":{"login":"piotrwitek","id":739075,"avatar_url":"https://avatars0.githubusercontent.com/u/739075?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrwitek","html_url":"https://github.com/piotrwitek","followers_url":"https://api.github.com/users/piotrwitek/followers","following_url":"https://api.github.com/users/piotrwitek/following{/other_user}","gists_url":"https://api.github.com/users/piotrwitek/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrwitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrwitek/subscriptions","organizations_url":"https://api.github.com/users/piotrwitek/orgs","repos_url":"https://api.github.com/users/piotrwitek/repos","events_url":"https://api.github.com/users/piotrwitek/events{/privacy}","received_events_url":"https://api.github.com/users/piotrwitek/received_events","type":"User","site_admin":false},"labels":[{"id":750530019,"url":"https://api.github.com/repos/piotrwitek/typesafe-actions/labels/bug","name":"bug","color":"ee0701","default":true},{"id":750530021,"url":"https://api.github.com/repos/piotrwitek/typesafe-actions/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"piotrwitek","id":739075,"avatar_url":"https://avatars0.githubusercontent.com/u/739075?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrwitek","html_url":"https://github.com/piotrwitek","followers_url":"https://api.github.com/users/piotrwitek/followers","following_url":"https://api.github.com/users/piotrwitek/following{/other_user}","gists_url":"https://api.github.com/users/piotrwitek/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrwitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrwitek/subscriptions","organizations_url":"https://api.github.com/users/piotrwitek/orgs","repos_url":"https://api.github.com/users/piotrwitek/repos","events_url":"https://api.github.com/users/piotrwitek/events{/privacy}","received_events_url":"https://api.github.com/users/piotrwitek/received_events","type":"User","site_admin":false},"assignees":[{"login":"piotrwitek","id":739075,"avatar_url":"https://avatars0.githubusercontent.com/u/739075?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrwitek","html_url":"https://github.com/piotrwitek","followers_url":"https://api.github.com/users/piotrwitek/followers","following_url":"https://api.github.com/users/piotrwitek/following{/other_user}","gists_url":"https://api.github.com/users/piotrwitek/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrwitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrwitek/subscriptions","organizations_url":"https://api.github.com/users/piotrwitek/orgs","repos_url":"https://api.github.com/users/piotrwitek/repos","events_url":"https://api.github.com/users/piotrwitek/events{/privacy}","received_events_url":"https://api.github.com/users/piotrwitek/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/piotrwitek/typesafe-actions/milestones/4","html_url":"https://github.com/piotrwitek/typesafe-actions/milestone/4","labels_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/milestones/4/labels","id":3378896,"number":4,"title":"v2.0.4","description":null,"creator":{"login":"piotrwitek","id":739075,"avatar_url":"https://avatars0.githubusercontent.com/u/739075?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrwitek","html_url":"https://github.com/piotrwitek","followers_url":"https://api.github.com/users/piotrwitek/followers","following_url":"https://api.github.com/users/piotrwitek/following{/other_user}","gists_url":"https://api.github.com/users/piotrwitek/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrwitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrwitek/subscriptions","organizations_url":"https://api.github.com/users/piotrwitek/orgs","repos_url":"https://api.github.com/users/piotrwitek/repos","events_url":"https://api.github.com/users/piotrwitek/events{/privacy}","received_events_url":"https://api.github.com/users/piotrwitek/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2018-05-27T08:53:17Z","updated_at":"2018-05-27T12:11:57Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-05-27T08:54:23Z","updated_at":"2018-05-27T12:11:57Z","closed_at":"2018-05-27T12:11:57Z","author_association":"OWNER","body":"Added missing test scenario for createAction when payload is undefined and only meta should be returned.\r\nTest case:\r\n```ts\r\nit('with meta', () => {\r\n    const action = createAction(types.WITH_META, resolve => {\r\n      return (token: string) => resolve(undefined, token);\r\n    });\r\n    const actual: { type: 'WITH_META'; meta: string } = action('token'); // Error:   Property 'meta' is missing in type '{ type: \"WITH_META\"; }'.\r\n\r\n    expect(actual).toEqual({ type: 'WITH_META', meta: 'token' });\r\n  });\r\n```"}}
{"actor":{"display_login":"piotrwitek"}}