{"action":"created","issue":{"url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js/issues/206","repository_url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js","labels_url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js/issues/206/comments","events_url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js/issues/206/events","html_url":"https://github.com/kimmobrunfeldt/progressbar.js/issues/206","id":299707412,"number":206,"title":"es6 import & typings","user":{"login":"Gouigouix","id":2912507,"avatar_url":"https://avatars1.githubusercontent.com/u/2912507?v=4","gravatar_id":"","url":"https://api.github.com/users/Gouigouix","html_url":"https://github.com/Gouigouix","followers_url":"https://api.github.com/users/Gouigouix/followers","following_url":"https://api.github.com/users/Gouigouix/following{/other_user}","gists_url":"https://api.github.com/users/Gouigouix/gists{/gist_id}","starred_url":"https://api.github.com/users/Gouigouix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gouigouix/subscriptions","organizations_url":"https://api.github.com/users/Gouigouix/orgs","repos_url":"https://api.github.com/users/Gouigouix/repos","events_url":"https://api.github.com/users/Gouigouix/events{/privacy}","received_events_url":"https://api.github.com/users/Gouigouix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T13:13:42Z","updated_at":"2018-03-03T11:55:26Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI tried to import into a TypeScript project the library using the notation es6, without result!\r\n```\r\nimport * as ProgressBar from 'progressbar'; // <--- not working\r\n// import ProgressBar from 'progressbar'; // <--- not work too, no export default\r\n\r\nconst circle = new ProgressBar.Circle ('# example-percent-container', {\r\n     color: '#FCB03C',\r\n     strokeWidth: 3,\r\n     trailWidth: 1,\r\n     text: {\r\n         value: '0'\r\n     }\r\n});\r\n````\r\nbut \r\n```\r\nconst ProgressBar = require ('progressbar.js'); // <--- works\r\n\r\nconst circle = new ProgressBar.Circle ('# example-percent-container', {\r\n     color: '#FCB03C',\r\n     strokeWidth: 3,\r\n     trailWidth: 1,\r\n     text: {\r\n         value: '0'\r\n     }\r\n});\r\n```\r\n\r\nThen, I did not find a typing file for the library, someone has concocted one on his side?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js/issues/comments/370142009","html_url":"https://github.com/kimmobrunfeldt/progressbar.js/issues/206#issuecomment-370142009","issue_url":"https://api.github.com/repos/kimmobrunfeldt/progressbar.js/issues/206","id":370142009,"user":{"login":"pklink","id":753350,"avatar_url":"https://avatars0.githubusercontent.com/u/753350?v=4","gravatar_id":"","url":"https://api.github.com/users/pklink","html_url":"https://github.com/pklink","followers_url":"https://api.github.com/users/pklink/followers","following_url":"https://api.github.com/users/pklink/following{/other_user}","gists_url":"https://api.github.com/users/pklink/gists{/gist_id}","starred_url":"https://api.github.com/users/pklink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pklink/subscriptions","organizations_url":"https://api.github.com/users/pklink/orgs","repos_url":"https://api.github.com/users/pklink/repos","events_url":"https://api.github.com/users/pklink/events{/privacy}","received_events_url":"https://api.github.com/users/pklink/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T11:55:26Z","updated_at":"2018-03-03T11:55:26Z","author_association":"NONE","body":"```javascript\r\nimport ProgressBar from 'progressbar.js'\r\n```\r\n\r\nis working fine. Do you have forgotten the `.js` in your import clause?"}}
{"actor":{"display_login":"pklink"}}