{"action":"created","issue":{"url":"https://api.github.com/repos/zxing-js/library/issues/117","repository_url":"https://api.github.com/repos/zxing-js/library","labels_url":"https://api.github.com/repos/zxing-js/library/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/zxing-js/library/issues/117/comments","events_url":"https://api.github.com/repos/zxing-js/library/issues/117/events","html_url":"https://github.com/zxing-js/library/issues/117","id":388566601,"node_id":"MDU6SXNzdWUzODg1NjY2MDE=","number":117,"title":"Const enums and --isolatedModules","user":{"login":"MidnightDesign","id":743172,"node_id":"MDQ6VXNlcjc0MzE3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/743172?v=4","gravatar_id":"","url":"https://api.github.com/users/MidnightDesign","html_url":"https://github.com/MidnightDesign","followers_url":"https://api.github.com/users/MidnightDesign/followers","following_url":"https://api.github.com/users/MidnightDesign/following{/other_user}","gists_url":"https://api.github.com/users/MidnightDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/MidnightDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MidnightDesign/subscriptions","organizations_url":"https://api.github.com/users/MidnightDesign/orgs","repos_url":"https://api.github.com/users/MidnightDesign/repos","events_url":"https://api.github.com/users/MidnightDesign/events{/privacy}","received_events_url":"https://api.github.com/users/MidnightDesign/received_events","type":"User","site_admin":false},"labels":[{"id":934132261,"node_id":"MDU6TGFiZWw5MzQxMzIyNjE=","url":"https://api.github.com/repos/zxing-js/library/labels/investigation","name":"investigation","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-12-07T09:15:52Z","updated_at":"2018-12-11T18:42:01Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use this library in a `create-react-app` with TypeScript. When I try to import it, I get the error\r\n```\r\n(...)/node_modules/@zxing/library/esm5/core/common/CharacterSetECI.d.ts\r\nType error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided.  TS1209\r\n```\r\nCRA with TypeScript has this flag enabled by default and doesn't let me turn it off. (To be honest, I don't really understand what it does. Much less what the difference between enums and const enums is.)\r\n\r\nIs there a way around this? I tried to remove all `const`s from `enum` declarations and all tests still pass."},"comment":{"url":"https://api.github.com/repos/zxing-js/library/issues/comments/446313949","html_url":"https://github.com/zxing-js/library/issues/117#issuecomment-446313949","issue_url":"https://api.github.com/repos/zxing-js/library/issues/117","id":446313949,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjMxMzk0OQ==","user":{"login":"odahcam","id":3942006,"node_id":"MDQ6VXNlcjM5NDIwMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/3942006?v=4","gravatar_id":"","url":"https://api.github.com/users/odahcam","html_url":"https://github.com/odahcam","followers_url":"https://api.github.com/users/odahcam/followers","following_url":"https://api.github.com/users/odahcam/following{/other_user}","gists_url":"https://api.github.com/users/odahcam/gists{/gist_id}","starred_url":"https://api.github.com/users/odahcam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odahcam/subscriptions","organizations_url":"https://api.github.com/users/odahcam/orgs","repos_url":"https://api.github.com/users/odahcam/repos","events_url":"https://api.github.com/users/odahcam/events{/privacy}","received_events_url":"https://api.github.com/users/odahcam/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T18:42:01Z","updated_at":"2018-12-11T18:42:01Z","author_association":"MEMBER","body":"Looks like I miserably failed at publishing it, hehe. I will try to publish it ASAP."}}
{"actor":{"display_login":"odahcam"}}