{"action":"opened","issue":{"url":"https://api.github.com/repos/hgoebl/mobile-detect.js/issues/46","repository_url":"https://api.github.com/repos/hgoebl/mobile-detect.js","labels_url":"https://api.github.com/repos/hgoebl/mobile-detect.js/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/hgoebl/mobile-detect.js/issues/46/comments","events_url":"https://api.github.com/repos/hgoebl/mobile-detect.js/issues/46/events","html_url":"https://github.com/hgoebl/mobile-detect.js/issues/46","id":189101865,"number":46,"title":"Incorrect Typescript typings","user":{"login":"mgroenhoff","id":22659163,"avatar_url":"https://avatars.githubusercontent.com/u/22659163?v=3","gravatar_id":"","url":"https://api.github.com/users/mgroenhoff","html_url":"https://github.com/mgroenhoff","followers_url":"https://api.github.com/users/mgroenhoff/followers","following_url":"https://api.github.com/users/mgroenhoff/following{/other_user}","gists_url":"https://api.github.com/users/mgroenhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/mgroenhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgroenhoff/subscriptions","organizations_url":"https://api.github.com/users/mgroenhoff/orgs","repos_url":"https://api.github.com/users/mgroenhoff/repos","events_url":"https://api.github.com/users/mgroenhoff/events{/privacy}","received_events_url":"https://api.github.com/users/mgroenhoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-14T12:35:26Z","updated_at":"2016-11-14T12:35:26Z","closed_at":null,"body":"In order to import the constructor in Typescript with the new typings you need have the following:\r\n```ts\r\nimport {MobileDetect} from \"mobile-detect\";\r\n```\r\nBut the source suggests that you need to import it using:\r\n```ts\r\nimport * as MobileDetect from \"mobile-detect\";\r\n```\r\nor\r\n```ts\r\nimport MobileDetect = require(\"mobile-detect\");\r\n```"}}
{"actor":{"display_login":"mgroenhoff"}}