{"action":"created","issue":{"url":"https://api.github.com/repos/nestjs/nest/issues/622","repository_url":"https://api.github.com/repos/nestjs/nest","labels_url":"https://api.github.com/repos/nestjs/nest/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/nestjs/nest/issues/622/comments","events_url":"https://api.github.com/repos/nestjs/nest/issues/622/events","html_url":"https://github.com/nestjs/nest/issues/622","id":319499335,"number":622,"title":"Export interfaces at the root level","user":{"login":"weeco","id":23424570,"avatar_url":"https://avatars3.githubusercontent.com/u/23424570?v=4","gravatar_id":"","url":"https://api.github.com/users/weeco","html_url":"https://github.com/weeco","followers_url":"https://api.github.com/users/weeco/followers","following_url":"https://api.github.com/users/weeco/following{/other_user}","gists_url":"https://api.github.com/users/weeco/gists{/gist_id}","starred_url":"https://api.github.com/users/weeco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weeco/subscriptions","organizations_url":"https://api.github.com/users/weeco/orgs","repos_url":"https://api.github.com/users/weeco/repos","events_url":"https://api.github.com/users/weeco/events{/privacy}","received_events_url":"https://api.github.com/users/weeco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-02T10:34:34Z","updated_at":"2018-05-06T18:54:17Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- \r\nPlease search GitHub for a similar issue or PR before submitting.\r\nCheck one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->\r\n[X] Bug report\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.\r\n</code></pre>\r\n\r\n## Current behavior\r\nThe Provider interface has to be imported from a submodule:\r\n\r\n```ts\r\nimport { Provider } from '@nestjs/common/interfaces/modules/provider.interface';\r\nexport const requestSchedulerProvider: Provider = {....}\r\n```\r\n\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\nThe interface should be exposed at it's root level\r\n\r\n```ts\r\nimport { Provider } from '@nestjs/common';\r\n```\r\n## What is the motivation / use case for changing the behavior?\r\n<!-- Describe the motivation or the concrete use case. -->\r\n[tslint] Submodule import paths from this package are disallowed; import from the root instead (no-submodule-imports)\r\n\r\nReasoning for this rule from palantir: \"Submodules of some packages are treated as private APIs and the import paths may change without deprecation periods. It’s best to stick with top-level package exports.\"\r\n\r\n\r\n## Environment\r\n\r\n<pre><code>\r\nNest version: 5.0.0-beta.7\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nestjs/nest/issues/comments/386903776","html_url":"https://github.com/nestjs/nest/issues/622#issuecomment-386903776","issue_url":"https://api.github.com/repos/nestjs/nest/issues/622","id":386903776,"user":{"login":"kamilmysliwiec","id":23244943,"avatar_url":"https://avatars0.githubusercontent.com/u/23244943?v=4","gravatar_id":"","url":"https://api.github.com/users/kamilmysliwiec","html_url":"https://github.com/kamilmysliwiec","followers_url":"https://api.github.com/users/kamilmysliwiec/followers","following_url":"https://api.github.com/users/kamilmysliwiec/following{/other_user}","gists_url":"https://api.github.com/users/kamilmysliwiec/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilmysliwiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilmysliwiec/subscriptions","organizations_url":"https://api.github.com/users/kamilmysliwiec/orgs","repos_url":"https://api.github.com/users/kamilmysliwiec/repos","events_url":"https://api.github.com/users/kamilmysliwiec/events{/privacy}","received_events_url":"https://api.github.com/users/kamilmysliwiec/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T18:54:17Z","updated_at":"2018-05-06T18:54:17Z","author_association":"OWNER","body":"Thanks @weeco. I'll fix it soon"}}
{"actor":{"display_login":"kamilmysliwiec"}}