{"action":"created","issue":{"url":"https://api.github.com/repos/dlau/koa-body/issues/98","repository_url":"https://api.github.com/repos/dlau/koa-body","labels_url":"https://api.github.com/repos/dlau/koa-body/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/dlau/koa-body/issues/98/comments","events_url":"https://api.github.com/repos/dlau/koa-body/issues/98/events","html_url":"https://github.com/dlau/koa-body/issues/98","id":331886317,"node_id":"MDU6SXNzdWUzMzE4ODYzMTc=","number":98,"title":"TypeScript compiler fails because of explicit @types import","user":{"login":"egilsster","id":5672257,"node_id":"MDQ6VXNlcjU2NzIyNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/5672257?v=4","gravatar_id":"","url":"https://api.github.com/users/egilsster","html_url":"https://github.com/egilsster","followers_url":"https://api.github.com/users/egilsster/followers","following_url":"https://api.github.com/users/egilsster/following{/other_user}","gists_url":"https://api.github.com/users/egilsster/gists{/gist_id}","starred_url":"https://api.github.com/users/egilsster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egilsster/subscriptions","organizations_url":"https://api.github.com/users/egilsster/orgs","repos_url":"https://api.github.com/users/egilsster/repos","events_url":"https://api.github.com/users/egilsster/events{/privacy}","received_events_url":"https://api.github.com/users/egilsster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T08:09:28Z","updated_at":"2018-06-13T18:32:03Z","closed_at":null,"author_association":"NONE","body":"## Problem/Feature Request Summary\r\n<!--- Include an overall summary of the issue or feature -->\r\n\r\n## Environment Information\r\n\r\n  * koa-body: v4.0.2\r\n  * Koa: v2.5.1\r\n  * Node.js: v8.11.1\r\n  * TypeScript: v2.9.1\r\n\r\n## Current Behavior\r\n<!--- Tell us what happens instead of the expected behavior -->\r\n\r\nAfter the new `v4.0.2` release, I started getting type errors when transpiling:\r\n\r\n```\r\nλ tsc --noEmit\r\nnode_modules/koa-body/index.d.ts(2,29): error TS6137: Cannot import type declaration files. Consider importing 'koa' instead of '@types/koa'.\r\nnode_modules/koa-body/index.d.ts(3,23): error TS2307: Cannot find module '@types/formidable'.\r\nnode_modules/koa-body/index.d.ts(3,23): error TS6137: Cannot import type declaration files. Consider importing 'formidable' instead of '@types/formidable'.\r\n```\r\n\r\n## Steps to Reproduce\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant. -->\r\n1. Just have a project with TypeScript and the versions of the dependencies noted above\r\n2. Run `tsc` / `tsc --noEmit` and see type errors\r\n\r\n## Expected Behavior\r\n<!--- Tell us what should happen -->\r\n\r\nIn `v4.0.1` it compiles just fine, as expected.\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix -->\r\n\r\nRemoving the `@types/*` explicit import would fix this issue.\r\n\r\n## Context (Environment)\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n<!--- Provide a general summary of the issue in the Title above -->\r\n"},"comment":{"url":"https://api.github.com/repos/dlau/koa-body/issues/comments/397040415","html_url":"https://github.com/dlau/koa-body/issues/98#issuecomment-397040415","issue_url":"https://api.github.com/repos/dlau/koa-body/issues/98","id":397040415,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzA0MDQxNQ==","user":{"login":"MarkHerhold","id":4934732,"node_id":"MDQ6VXNlcjQ5MzQ3MzI=","avatar_url":"https://avatars0.githubusercontent.com/u/4934732?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkHerhold","html_url":"https://github.com/MarkHerhold","followers_url":"https://api.github.com/users/MarkHerhold/followers","following_url":"https://api.github.com/users/MarkHerhold/following{/other_user}","gists_url":"https://api.github.com/users/MarkHerhold/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkHerhold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkHerhold/subscriptions","organizations_url":"https://api.github.com/users/MarkHerhold/orgs","repos_url":"https://api.github.com/users/MarkHerhold/repos","events_url":"https://api.github.com/users/MarkHerhold/events{/privacy}","received_events_url":"https://api.github.com/users/MarkHerhold/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T18:32:03Z","updated_at":"2018-06-13T18:32:03Z","author_association":"COLLABORATOR","body":"Ah, sorry about this and thanks for the PR."}}
{"actor":{"display_login":"MarkHerhold"}}