{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/28998","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/28998/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/28998/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/28998/events","html_url":"https://github.com/Microsoft/TypeScript/issues/28998","id":390505288,"node_id":"MDU6SXNzdWUzOTA1MDUyODg=","number":28998,"title":"Lib.d.ts `ClipboardEventInit` does not match the W3C specification","user":{"login":"Brcrwilliams","id":22383546,"node_id":"MDQ6VXNlcjIyMzgzNTQ2","avatar_url":"https://avatars3.githubusercontent.com/u/22383546?v=4","gravatar_id":"","url":"https://api.github.com/users/Brcrwilliams","html_url":"https://github.com/Brcrwilliams","followers_url":"https://api.github.com/users/Brcrwilliams/followers","following_url":"https://api.github.com/users/Brcrwilliams/following{/other_user}","gists_url":"https://api.github.com/users/Brcrwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/Brcrwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brcrwilliams/subscriptions","organizations_url":"https://api.github.com/users/Brcrwilliams/orgs","repos_url":"https://api.github.com/users/Brcrwilliams/repos","events_url":"https://api.github.com/users/Brcrwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/Brcrwilliams/received_events","type":"User","site_admin":false},"labels":[{"id":113970366,"node_id":"MDU6TGFiZWwxMTM5NzAzNjY=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":151698898,"node_id":"MDU6TGFiZWwxNTE2OTg4OTg=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Domain:%20lib.d.ts","name":"Domain: lib.d.ts","color":"c7def8","default":false},{"id":117630704,"node_id":"MDU6TGFiZWwxMTc2MzA3MDQ=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/help%20wanted","name":"help wanted","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/79","html_url":"https://github.com/Microsoft/TypeScript/milestone/79","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/79/labels","id":3721640,"node_id":"MDk6TWlsZXN0b25lMzcyMTY0MA==","number":79,"title":"TypeScript 3.3","description":"TypeScript 3.3 RC","creator":{"login":"RyanCavanaugh","id":6685088,"node_id":"MDQ6VXNlcjY2ODUwODg=","avatar_url":"https://avatars3.githubusercontent.com/u/6685088?v=4","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"open_issues":350,"closed_issues":48,"state":"open","created_at":"2018-10-08T17:13:40Z","updated_at":"2018-12-16T01:01:14Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-12-13T03:42:00Z","updated_at":"2018-12-16T14:06:28Z","closed_at":null,"author_association":"NONE","body":"<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**\r\n3.3.0-dev.20181212\r\n\r\n<!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\nClipboardEvent\r\nClipboardEventInit\r\nclipboardData is null\r\n\r\n**Code**\r\n\r\n```ts\r\nnew ClipboardEvent('paste', { clipboardData: new DataTransfer() });\r\n```\r\n\r\n**Expected behavior:**\r\n[According to the W3C spec this should be a valid constructor.](https://www.w3.org/TR/clipboard-apis/#clipboard-event-interfaces)\r\n\r\n[Chromium currently does not initialize the clipboardData](https://bugs.chromium.org/p/chromium/issues/detail?id=800742) so it is currently impossible to create an ClipboardEvent and add data to it when using TypeScript with Chromium.\r\n\r\n**Actual behavior:**\r\nTS fails to compile with an error:\r\n\r\ntest.ts:1:31 - error TS2345: Argument of type '{ clipboardData: DataTransfer; }' is not assignable to parameter of type 'ClipboardEventInit'.\r\n  Object literal may only specify known properties, and 'clipboardData' does not exist in type 'ClipboardEventInit'.\r\n\r\n1 new ClipboardEvent('paste', { clipboardData: new DataTransfer() });\r\n                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\r\nFound 1 error.\r\n\r\n**Playground Link:** <!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior --> https://www.typescriptlang.org/play/#src=new%20ClipboardEvent('paste'%2C%20%7B%20clipboardData%3A%20new%20DataTransfer()%20%7D)%3B%0D%0A"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/447646063","html_url":"https://github.com/Microsoft/TypeScript/issues/28998#issuecomment-447646063","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/28998","id":447646063,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY0NjA2Mw==","user":{"login":"nguyenbathanh","id":4046112,"node_id":"MDQ6VXNlcjQwNDYxMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/4046112?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenbathanh","html_url":"https://github.com/nguyenbathanh","followers_url":"https://api.github.com/users/nguyenbathanh/followers","following_url":"https://api.github.com/users/nguyenbathanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenbathanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenbathanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenbathanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenbathanh/orgs","repos_url":"https://api.github.com/users/nguyenbathanh/repos","events_url":"https://api.github.com/users/nguyenbathanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenbathanh/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T14:06:28Z","updated_at":"2018-12-16T14:06:28Z","author_association":"NONE","body":"I have got the same issue:\r\n```\r\nerror TS2345: Argument of type '{ clipboardData: any; }' is not assignable to parameter of type 'ClipboardEventInit'. \r\nObject literal may only specify known properties, and 'clipboardData' does not exist in type 'ClipboardEventInit'.\r\n```"}}
{"actor":{"display_login":"nguyenbathanh"}}