{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1326","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/1326/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1326/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1326/events","html_url":"https://github.com/facebook/flow/issues/1326","id":129299308,"number":1326,"title":"Object type spread","user":{"login":"samwgoldman","id":254842,"avatar_url":"https://avatars.githubusercontent.com/u/254842?v=3","gravatar_id":"","url":"https://api.github.com/users/samwgoldman","html_url":"https://github.com/samwgoldman","followers_url":"https://api.github.com/users/samwgoldman/followers","following_url":"https://api.github.com/users/samwgoldman/following{/other_user}","gists_url":"https://api.github.com/users/samwgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/samwgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwgoldman/subscriptions","organizations_url":"https://api.github.com/users/samwgoldman/orgs","repos_url":"https://api.github.com/users/samwgoldman/repos","events_url":"https://api.github.com/users/samwgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/samwgoldman/received_events","type":"User","site_admin":false},"labels":[{"id":149548105,"url":"https://api.github.com/repos/facebook/flow/labels/feature%20request","name":"feature request","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"samwgoldman","id":254842,"avatar_url":"https://avatars.githubusercontent.com/u/254842?v=3","gravatar_id":"","url":"https://api.github.com/users/samwgoldman","html_url":"https://github.com/samwgoldman","followers_url":"https://api.github.com/users/samwgoldman/followers","following_url":"https://api.github.com/users/samwgoldman/following{/other_user}","gists_url":"https://api.github.com/users/samwgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/samwgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwgoldman/subscriptions","organizations_url":"https://api.github.com/users/samwgoldman/orgs","repos_url":"https://api.github.com/users/samwgoldman/repos","events_url":"https://api.github.com/users/samwgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/samwgoldman/received_events","type":"User","site_admin":false},"assignees":[{"login":"samwgoldman","id":254842,"avatar_url":"https://avatars.githubusercontent.com/u/254842?v=3","gravatar_id":"","url":"https://api.github.com/users/samwgoldman","html_url":"https://github.com/samwgoldman","followers_url":"https://api.github.com/users/samwgoldman/followers","following_url":"https://api.github.com/users/samwgoldman/following{/other_user}","gists_url":"https://api.github.com/users/samwgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/samwgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwgoldman/subscriptions","organizations_url":"https://api.github.com/users/samwgoldman/orgs","repos_url":"https://api.github.com/users/samwgoldman/repos","events_url":"https://api.github.com/users/samwgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/samwgoldman/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2016-01-27T23:13:13Z","updated_at":"2017-02-14T00:23:42Z","closed_at":null,"body":"It would be nice to be able to spread an existing object type into another one:\n\n``` javascript\ntype A = {\n  foo: string,\n  bar: number,\n};\ntype B = {\n  bar: boolean,\n};\ntype C = {\n  ...A,\n  ...B,\n};\n```\n\nIn the above, `C` would resolve to `{ foo: string, bar: boolean }`.\n\nThis is different from intersection types. With intersection types, `A & B` becomes something more like `{ foo: string, bar: number & boolean }`, which the observant reader will notice is uninhabitable.\n"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/279567823","html_url":"https://github.com/facebook/flow/issues/1326#issuecomment-279567823","issue_url":"https://api.github.com/repos/facebook/flow/issues/1326","id":279567823,"user":{"login":"conartist6","id":540777,"avatar_url":"https://avatars.githubusercontent.com/u/540777?v=3","gravatar_id":"","url":"https://api.github.com/users/conartist6","html_url":"https://github.com/conartist6","followers_url":"https://api.github.com/users/conartist6/followers","following_url":"https://api.github.com/users/conartist6/following{/other_user}","gists_url":"https://api.github.com/users/conartist6/gists{/gist_id}","starred_url":"https://api.github.com/users/conartist6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conartist6/subscriptions","organizations_url":"https://api.github.com/users/conartist6/orgs","repos_url":"https://api.github.com/users/conartist6/repos","events_url":"https://api.github.com/users/conartist6/events{/privacy}","received_events_url":"https://api.github.com/users/conartist6/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T00:23:42Z","updated_at":"2017-02-14T00:23:42Z","body":"That was one of the first things I looked at, but it is actually not correct! The problem is that it is creating optional values not optional keys.\r\n\r\nhttps://flowtype.org/try/#0C4TwDgpgBACgTgezAZygXigbwFBSgMwQQC4oB+ZYOASwDsBzbAXwG5tsBjAGwENlUAwggC2YKBAAewCLQAmqAEoQeHYABIhohLRnAAPADcE1WQBpYiFOaMmAfFibtO2ylGmuMezWID0tlkA"}}
{"actor":{"display_login":"conartist6"}}