{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8237","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8237/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8237/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8237/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8237","id":149967996,"number":8237,"title":"How can I let JSDoc reference to type in another module","user":{"login":"Thaina","id":1042507,"avatar_url":"https://avatars1.githubusercontent.com/u/1042507?v=4","gravatar_id":"","url":"https://api.github.com/users/Thaina","html_url":"https://github.com/Thaina","followers_url":"https://api.github.com/users/Thaina/followers","following_url":"https://api.github.com/users/Thaina/following{/other_user}","gists_url":"https://api.github.com/users/Thaina/gists{/gist_id}","starred_url":"https://api.github.com/users/Thaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thaina/subscriptions","organizations_url":"https://api.github.com/users/Thaina/orgs","repos_url":"https://api.github.com/users/Thaina/repos","events_url":"https://api.github.com/users/Thaina/events{/privacy}","received_events_url":"https://api.github.com/users/Thaina/received_events","type":"User","site_admin":false},"labels":[{"id":113971558,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-04-21T05:04:06Z","updated_at":"2018-02-05T08:49:47Z","closed_at":"2016-04-21T18:58:49Z","author_association":"NONE","body":"I have some d.ts files in my project and any files without module could be reference any class inside it directly. But some files is declare module and cannot be referred to it\n\nThis module also contain - sign in its name (it is aws-sdk from aws-sdk.d.ts)\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/363017947","html_url":"https://github.com/Microsoft/TypeScript/issues/8237#issuecomment-363017947","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8237","id":363017947,"user":{"login":"dimkir","id":3438798,"avatar_url":"https://avatars3.githubusercontent.com/u/3438798?v=4","gravatar_id":"","url":"https://api.github.com/users/dimkir","html_url":"https://github.com/dimkir","followers_url":"https://api.github.com/users/dimkir/followers","following_url":"https://api.github.com/users/dimkir/following{/other_user}","gists_url":"https://api.github.com/users/dimkir/gists{/gist_id}","starred_url":"https://api.github.com/users/dimkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimkir/subscriptions","organizations_url":"https://api.github.com/users/dimkir/orgs","repos_url":"https://api.github.com/users/dimkir/repos","events_url":"https://api.github.com/users/dimkir/events{/privacy}","received_events_url":"https://api.github.com/users/dimkir/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T08:49:47Z","updated_at":"2018-02-05T08:49:47Z","author_association":"NONE","body":"Based on @mhegazy answer, but with plain `requires` and avoiding dash in `aws-sdk` namespace. \r\n\r\n![image](https://user-images.githubusercontent.com/3438798/35795546-429ad9e0-0a38-11e8-8095-a6cf300ca676.png)\r\n\r\n\r\n```js\r\nconst AWS = require('aws-sdk');\r\n\r\n/**\r\n * @param {AWS.DynamoDB} dynamo \r\n */\r\nmodule.exports = function(dynamo){\r\n    return handler;\r\n\r\n    function handler(event, context, callback){\r\n        let msg = `We are running ${event.name}`;\r\n        console.log(msg)\r\n        callback(null, { msg });\r\n\r\n    }    \r\n}\r\n\r\n```"}}
{"actor":{"display_login":"dimkir"}}