{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30501","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30501/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30501/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30501/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30501","id":380416989,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNjE5Njg4","number":30501,"title":"[element-resize-detector] Updated type definition","user":{"login":"franklixuefei","id":1334982,"node_id":"MDQ6VXNlcjEzMzQ5ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1334982?v=4","gravatar_id":"","url":"https://api.github.com/users/franklixuefei","html_url":"https://github.com/franklixuefei","followers_url":"https://api.github.com/users/franklixuefei/followers","following_url":"https://api.github.com/users/franklixuefei/following{/other_user}","gists_url":"https://api.github.com/users/franklixuefei/gists{/gist_id}","starred_url":"https://api.github.com/users/franklixuefei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franklixuefei/subscriptions","organizations_url":"https://api.github.com/users/franklixuefei/orgs","repos_url":"https://api.github.com/users/franklixuefei/repos","events_url":"https://api.github.com/users/franklixuefei/events{/privacy}","received_events_url":"https://api.github.com/users/franklixuefei/received_events","type":"User","site_admin":false},"labels":[{"id":644095236,"node_id":"MDU6TGFiZWw2NDQwOTUyMzY=","url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/Merge:Express","name":"Merge:Express","color":"00AA00","default":false},{"id":905334095,"node_id":"MDU6TGFiZWw5MDUzMzQwOTU=","url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/Owner%20Approved","name":"Owner Approved","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-11-13T20:48:49Z","updated_at":"2018-11-16T01:17:32Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/30501","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30501","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30501.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30501.patch"},"body":"Removed namespace of the type definition for `element-resize-detector` and updated the test.\r\nFrom now on, people do not have to do \r\n\r\n```jsx\r\nimport * as elementResizeDetectorMaker from 'element-resize-detector'\r\n```\r\n\r\nin typescript. Just simply use\r\n\r\n```jsx\r\nimport elementResizeDetectorMaker from 'element-resize-detector'\r\n```\r\n\r\nPlease fill in this template.\r\n\r\n- [x] Use a meaningful title for the pull request. Include the name of the package modified.\r\n- [x] Test the change in your own code. (Compile and run.)\r\n- [x] Add or edit tests to reflect the change. (Run with `npm test`.)\r\n- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).\r\n- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).\r\n- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).\r\n\r\nIf changing an existing definition:\r\n- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>\r\n- [x] Increase the version number in the header if appropriate.\r\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/439248369","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30501#issuecomment-439248369","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30501","id":439248369,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTI0ODM2OQ==","user":{"login":"andy-ms","id":19274678,"node_id":"MDQ6VXNlcjE5Mjc0Njc4","avatar_url":"https://avatars3.githubusercontent.com/u/19274678?v=4","gravatar_id":"","url":"https://api.github.com/users/andy-ms","html_url":"https://github.com/andy-ms","followers_url":"https://api.github.com/users/andy-ms/followers","following_url":"https://api.github.com/users/andy-ms/following{/other_user}","gists_url":"https://api.github.com/users/andy-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-ms/subscriptions","organizations_url":"https://api.github.com/users/andy-ms/orgs","repos_url":"https://api.github.com/users/andy-ms/repos","events_url":"https://api.github.com/users/andy-ms/events{/privacy}","received_events_url":"https://api.github.com/users/andy-ms/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T01:17:32Z","updated_at":"2018-11-16T01:17:32Z","author_association":"CONTRIBUTOR","body":"Your compiler options show `**\"module\": \"esnext\",` -- how are you running this? If you are using some module system that converts commonjs modules to default exports for you, then you should set [`\"allowSyntheticDefaultImports\": true`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to indicate this."}}
{"actor":{"display_login":"andy-ms"}}