{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11305","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11305/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11305/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11305/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11305","id":180503018,"number":11305,"title":"MutationObserver API declarations missing","user":{"login":"AvraamMavridis","id":283690,"avatar_url":"https://avatars.githubusercontent.com/u/283690?v=3","gravatar_id":"","url":"https://api.github.com/users/AvraamMavridis","html_url":"https://github.com/AvraamMavridis","followers_url":"https://api.github.com/users/AvraamMavridis/followers","following_url":"https://api.github.com/users/AvraamMavridis/following{/other_user}","gists_url":"https://api.github.com/users/AvraamMavridis/gists{/gist_id}","starred_url":"https://api.github.com/users/AvraamMavridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AvraamMavridis/subscriptions","organizations_url":"https://api.github.com/users/AvraamMavridis/orgs","repos_url":"https://api.github.com/users/AvraamMavridis/repos","events_url":"https://api.github.com/users/AvraamMavridis/events{/privacy}","received_events_url":"https://api.github.com/users/AvraamMavridis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-02T09:03:12Z","updated_at":"2016-10-11T00:04:57Z","closed_at":null,"body":"The [MutationObserver](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver) related declarations are missing from the `lib.d.ts` file.  Since this API is not browser specific I would expect the declarations to exist (as it happens with FileReader for example).\r\n\r\n**TypeScript Version:**  2.0.3\r\n\r\n**Code**\r\n\r\n```ts\r\nif( window && window.MutationObserver  )\r\n{\r\n   ...\r\n}\r\n\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nTo not arise an error.\r\n\r\n**Actual behavior:** \r\n\r\nError  : Property `MutationObserver` does not exist on type `Window`\r\n\r\nI \"solved\" it by using the `window[\"MutationObserver\"]` syntax. If that is an actual bug/issue I can provide a PR.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/252777667","html_url":"https://github.com/Microsoft/TypeScript/issues/11305#issuecomment-252777667","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11305","id":252777667,"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},"created_at":"2016-10-11T00:04:57Z","updated_at":"2016-10-11T00:04:57Z","body":"thanks @kpreisser "}}
{"actor":{"display_login":"mhegazy"}}