{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20703","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20703/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20703/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20703/events","html_url":"https://github.com/Microsoft/TypeScript/issues/20703","id":282235755,"node_id":"MDU6SXNzdWUyODIyMzU3NTU=","number":20703,"title":"Jquery error TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided.","user":{"login":"pmunin","id":7120440,"node_id":"MDQ6VXNlcjcxMjA0NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/7120440?v=4","gravatar_id":"","url":"https://api.github.com/users/pmunin","html_url":"https://github.com/pmunin","followers_url":"https://api.github.com/users/pmunin/followers","following_url":"https://api.github.com/users/pmunin/following{/other_user}","gists_url":"https://api.github.com/users/pmunin/gists{/gist_id}","starred_url":"https://api.github.com/users/pmunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmunin/subscriptions","organizations_url":"https://api.github.com/users/pmunin/orgs","repos_url":"https://api.github.com/users/pmunin/repos","events_url":"https://api.github.com/users/pmunin/events{/privacy}","received_events_url":"https://api.github.com/users/pmunin/received_events","type":"User","site_admin":false},"labels":[{"id":117630726,"node_id":"MDU6TGFiZWwxMTc2MzA3MjY=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Committed","name":"Committed","color":"009800","default":false},{"id":113971155,"node_id":"MDU6TGFiZWwxMTM5NzExNTU=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75","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/2","html_url":"https://github.com/Microsoft/TypeScript/milestone/2","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/2/labels","id":721044,"node_id":"MDk6TWlsZXN0b25lNzIxMDQ0","number":2,"title":"Community","description":"Issues in the 'Community' milestone are ones which we are accepting pull requests for","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":527,"closed_issues":77,"state":"open","created_at":"2014-07-14T23:24:58Z","updated_at":"2018-08-30T18:16:45Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2017-12-14T20:54:42Z","updated_at":"2018-08-31T17:03:44Z","closed_at":null,"author_association":"NONE","body":"<!-- BUGS: Please use this template. -->\r\n<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.6.2\r\n\r\n**Code**\r\n\r\n```json\r\n//package.json:\r\n{\r\n  \"name\": \"issue-ts-isolatedmodule\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"dependencies\": {\r\n    \"jquery\": \"^3.2.1\"\r\n  }\r\n  ,\"devDependencies\": {\r\n    \"typescript\": \"^2.6.2\",\r\n    \"@types/jquery\":\"^3.2.17\"\r\n  }\r\n}\r\n\r\n//tsconfig.json\r\n\r\n{\r\n  \"compilerOptions\": {\r\n    \"outDir\": \"build/dist\",\r\n    \"module\": \"esnext\",\r\n    \"target\": \"es5\",\r\n    \"lib\": [\"es6\", \"dom\"],\r\n    \"sourceMap\": true,\r\n    \"allowJs\": true,\r\n    \"jsx\": \"react\",\r\n    \"moduleResolution\": \"node\",\r\n    \"rootDir\": \"src\",\r\n    \"forceConsistentCasingInFileNames\": true,\r\n    \"suppressImplicitAnyIndexErrors\": true,\r\n    \"isolatedModules\": true,\r\n    \"preserveConstEnums\": true,\r\n    \"preserveSymlinks\": true,\r\n    \"allowSyntheticDefaultImports\": true\r\n  },\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"build\",\r\n    \"scripts\",\r\n    \"acceptance-tests\",\r\n    \"webpack\",\r\n    \"jest\",\r\n    \"src/setupTests.ts\"\r\n  ]\r\n}\r\n```\r\n\r\n```ts\r\n//src/index.ts\r\nexport function HalloWorld(){\r\n    return \"Hallo world!\"\r\n}\r\n```\r\n\r\nExecuting `tsc -p .`.\r\n\r\n**Expected behavior:**\r\nsuccessfully compiled /build/dist/{tsfilename}.js for each ts module: \r\n\r\n**Actual behavior:**\r\n```\r\nnode_modules/@types/jquery/index.d.ts(7690,16): error TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided.\r\nnode_modules/@types/jquery/index.d.ts(7698,16): error TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided.\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/417729568","html_url":"https://github.com/Microsoft/TypeScript/issues/20703#issuecomment-417729568","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20703","id":417729568,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzcyOTU2OA==","user":{"login":"chicoxyzzy","id":1507086,"node_id":"MDQ6VXNlcjE1MDcwODY=","avatar_url":"https://avatars3.githubusercontent.com/u/1507086?v=4","gravatar_id":"","url":"https://api.github.com/users/chicoxyzzy","html_url":"https://github.com/chicoxyzzy","followers_url":"https://api.github.com/users/chicoxyzzy/followers","following_url":"https://api.github.com/users/chicoxyzzy/following{/other_user}","gists_url":"https://api.github.com/users/chicoxyzzy/gists{/gist_id}","starred_url":"https://api.github.com/users/chicoxyzzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chicoxyzzy/subscriptions","organizations_url":"https://api.github.com/users/chicoxyzzy/orgs","repos_url":"https://api.github.com/users/chicoxyzzy/repos","events_url":"https://api.github.com/users/chicoxyzzy/events{/privacy}","received_events_url":"https://api.github.com/users/chicoxyzzy/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T17:03:44Z","updated_at":"2018-08-31T17:03:44Z","author_association":"CONTRIBUTOR","body":"Is replacing const emuns by string union types in DefinitelyTyped the only way to fix this error?"}}
{"actor":{"display_login":"chicoxyzzy"}}