{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2975","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2975/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2975/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2975/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2975","id":72284620,"number":2975,"title":"CustomEvent is missing for the list of specialized signatures on document.createEvent","user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/lib.d.ts","name":"lib.d.ts","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"zhengbli","id":1171301,"avatar_url":"https://avatars.githubusercontent.com/u/1171301?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbli","html_url":"https://github.com/zhengbli","followers_url":"https://api.github.com/users/zhengbli/followers","following_url":"https://api.github.com/users/zhengbli/following{/other_user}","gists_url":"https://api.github.com/users/zhengbli/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbli/subscriptions","organizations_url":"https://api.github.com/users/zhengbli/orgs","repos_url":"https://api.github.com/users/zhengbli/repos","events_url":"https://api.github.com/users/zhengbli/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbli/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/10","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.5.2","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/10/labels","id":1081230,"number":10,"title":"TypeScript 1.5.2","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":2,"state":"open","created_at":"2015-04-23T20:46:41Z","updated_at":"2015-04-30T21:21:20Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-30T21:21:20Z","updated_at":"2015-04-30T21:53:10Z","closed_at":null,"body":"Coppied from @NekR  coment in: https://github.com/Microsoft/TypeScript/issues/2029#issuecomment-97964753\r\n\r\nThis:\r\n```typescript\r\nvar event = document.createEvent('CustomEvent');\r\nevent.initCustomEvent('test', true, true, void 0);\r\nthis.node.dispatchEvent(event);\r\n```\r\nproduces this error:\r\n```error TS2339: Property 'initCustomEvent' does not exist on type 'Event'.```\r\n\r\nThis:\r\n```typescript\r\nvar event:CustomEvent = document.createEvent('CustomEvent');\r\nevent.initCustomEvent('test', true, true, void 0);\r\nthis.node.dispatchEvent(event);\r\n```\r\nproduces this error:\r\n```error TS2322: Type 'Event' is not assignable to type 'CustomEvent'.\r\n  Property 'detail' is missing in type 'Event'.```\r\n\r\nAnd only casting works:\r\n```typescript\r\nvar event = <CustomEvent>document.createEvent('CustomEvent');\r\nevent.initCustomEvent('test', true, true, void 0);\r\nthis.node.dispatchEvent(event);\r\n```\r\n\r\nFirst case worked just fine ~~30 mins~~2 hours ago when I was on TS1.5-Alpha."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/97982030","html_url":"https://github.com/Microsoft/TypeScript/issues/2975#issuecomment-97982030","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2975","id":97982030,"user":{"login":"NekR","id":1189265,"avatar_url":"https://avatars.githubusercontent.com/u/1189265?v=3","gravatar_id":"","url":"https://api.github.com/users/NekR","html_url":"https://github.com/NekR","followers_url":"https://api.github.com/users/NekR/followers","following_url":"https://api.github.com/users/NekR/following{/other_user}","gists_url":"https://api.github.com/users/NekR/gists{/gist_id}","starred_url":"https://api.github.com/users/NekR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NekR/subscriptions","organizations_url":"https://api.github.com/users/NekR/orgs","repos_url":"https://api.github.com/users/NekR/repos","events_url":"https://api.github.com/users/NekR/events{/privacy}","received_events_url":"https://api.github.com/users/NekR/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T21:53:10Z","updated_at":"2015-04-30T21:53:10Z","body":"@mhegazy Yep, it works for me know, thank you!"}}