{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5773","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5773/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5773/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5773/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5773","id":118572882,"number":5773,"title":"HTMLCanvasElement.getContext() missing \"webgl\" type in lib.d.ts","user":{"login":"GoToLoop","id":6551569,"avatar_url":"https://avatars.githubusercontent.com/u/6551569?v=3","gravatar_id":"","url":"https://api.github.com/users/GoToLoop","html_url":"https://github.com/GoToLoop","followers_url":"https://api.github.com/users/GoToLoop/followers","following_url":"https://api.github.com/users/GoToLoop/following{/other_user}","gists_url":"https://api.github.com/users/GoToLoop/gists{/gist_id}","starred_url":"https://api.github.com/users/GoToLoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoToLoop/subscriptions","organizations_url":"https://api.github.com/users/GoToLoop/orgs","repos_url":"https://api.github.com/users/GoToLoop/repos","events_url":"https://api.github.com/users/GoToLoop/events{/privacy}","received_events_url":"https://api.github.com/users/GoToLoop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Accepting%20PRs","name":"Accepting PRs","color":"009800"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Effort:%20Easy","name":"Effort: Easy","color":"51bb51"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/lib.d.ts","name":"lib.d.ts","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-24T10:10:15Z","updated_at":"2015-12-04T05:28:28Z","closed_at":null,"body":"```ts\r\ngetContext(contextId: \"2d\"): CanvasRenderingContext2D;\r\ngetContext(contextId: \"experimental-webgl\"): WebGLRenderingContext;\r\ngetContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;\r\n```\r\n\r\nOverloaded `getContext(contextId: \"experimental-webgl\"): WebGLRenderingContext;` is missing \"webgl\" according to these reference sites below:\r\nhttps://developer.Mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext\r\nhttp://www.JavaScripture.com/HTMLCanvasElement\r\n\r\nAlso all the overloaded methods got an optional `contextAttributes?: {}` parameter.\r\nAnd I don't think `...args: any[]` represents the 2nd parameter correctly.\r\nThis is my change proposal for them btW:  :-D  \r\n\r\n```ts\r\ngetContext(contextType: \"2d\", contextAttributes?: {}): CanvasRenderingContext2D;\r\ngetContext(contextType: \"webgl\" | \"experimental-webgl\", contextAttributes?: {}): WebGLRenderingContext;\r\ngetContext(contextType: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext;\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/161880623","html_url":"https://github.com/Microsoft/TypeScript/issues/5773#issuecomment-161880623","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5773","id":161880623,"user":{"login":"GoToLoop","id":6551569,"avatar_url":"https://avatars.githubusercontent.com/u/6551569?v=3","gravatar_id":"","url":"https://api.github.com/users/GoToLoop","html_url":"https://github.com/GoToLoop","followers_url":"https://api.github.com/users/GoToLoop/followers","following_url":"https://api.github.com/users/GoToLoop/following{/other_user}","gists_url":"https://api.github.com/users/GoToLoop/gists{/gist_id}","starred_url":"https://api.github.com/users/GoToLoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoToLoop/subscriptions","organizations_url":"https://api.github.com/users/GoToLoop/orgs","repos_url":"https://api.github.com/users/GoToLoop/repos","events_url":"https://api.github.com/users/GoToLoop/events{/privacy}","received_events_url":"https://api.github.com/users/GoToLoop/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T05:28:28Z","updated_at":"2015-12-04T05:28:28Z","body":"If that happens, it's as simple as making another interface extending that.\r\nAnyways, _**WebGL2RenderingContext**_ is more like a draft right now and and it's Firefox exclusive so far."}}