{"action":"created","issue":{"url":"https://api.github.com/repos/snabbdom/snabbdom/issues/191","repository_url":"https://api.github.com/repos/snabbdom/snabbdom","labels_url":"https://api.github.com/repos/snabbdom/snabbdom/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/snabbdom/snabbdom/issues/191/comments","events_url":"https://api.github.com/repos/snabbdom/snabbdom/issues/191/events","html_url":"https://github.com/snabbdom/snabbdom/pull/191","id":187590402,"number":191,"title":"Allow h(sel, data, node) and h(sel, node) shortcut notations","user":{"login":"AlexGalays","id":1375586,"avatar_url":"https://avatars.githubusercontent.com/u/1375586?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexGalays","html_url":"https://github.com/AlexGalays","followers_url":"https://api.github.com/users/AlexGalays/followers","following_url":"https://api.github.com/users/AlexGalays/following{/other_user}","gists_url":"https://api.github.com/users/AlexGalays/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGalays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGalays/subscriptions","organizations_url":"https://api.github.com/users/AlexGalays/orgs","repos_url":"https://api.github.com/users/AlexGalays/repos","events_url":"https://api.github.com/users/AlexGalays/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGalays/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-06T21:26:59Z","updated_at":"2016-11-07T19:48:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/snabbdom/snabbdom/pulls/191","html_url":"https://github.com/snabbdom/snabbdom/pull/191","diff_url":"https://github.com/snabbdom/snabbdom/pull/191.diff","patch_url":"https://github.com/snabbdom/snabbdom/pull/191.patch"},"body":"For two reasons:\r\n\r\n- Convenience (virtual-dom does it too)\r\n- As it stands, it's very hard (impossible if you account for people's potential custom modules) to type the `h` function correctly as typescript uses structural typing and the data object being lots of optional things (it will typecheck just fine if you specify them, but the compiler is clueless if you don't), an Array or VNode could pass for an empty data object just fine. If we can't encode it, allow it!"},"comment":{"url":"https://api.github.com/repos/snabbdom/snabbdom/issues/comments/258942374","html_url":"https://github.com/snabbdom/snabbdom/pull/191#issuecomment-258942374","issue_url":"https://api.github.com/repos/snabbdom/snabbdom/issues/191","id":258942374,"user":{"login":"staltz","id":90512,"avatar_url":"https://avatars.githubusercontent.com/u/90512?v=3","gravatar_id":"","url":"https://api.github.com/users/staltz","html_url":"https://github.com/staltz","followers_url":"https://api.github.com/users/staltz/followers","following_url":"https://api.github.com/users/staltz/following{/other_user}","gists_url":"https://api.github.com/users/staltz/gists{/gist_id}","starred_url":"https://api.github.com/users/staltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staltz/subscriptions","organizations_url":"https://api.github.com/users/staltz/orgs","repos_url":"https://api.github.com/users/staltz/repos","events_url":"https://api.github.com/users/staltz/events{/privacy}","received_events_url":"https://api.github.com/users/staltz/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T19:48:41Z","updated_at":"2016-11-07T19:48:41Z","body":"By the way, with new features in a PR, tests are vital."}}
{"actor":{"display_login":"staltz"}}