{"action":"reopened","issue":{"url":"https://api.github.com/repos/jumpinjackie/jsdoc-typescript-plugin/issues/67","repository_url":"https://api.github.com/repos/jumpinjackie/jsdoc-typescript-plugin","labels_url":"https://api.github.com/repos/jumpinjackie/jsdoc-typescript-plugin/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/jumpinjackie/jsdoc-typescript-plugin/issues/67/comments","events_url":"https://api.github.com/repos/jumpinjackie/jsdoc-typescript-plugin/issues/67/events","html_url":"https://github.com/jumpinjackie/jsdoc-typescript-plugin/issues/67","id":179959245,"number":67,"title":"Include option objects into modules","user":{"login":"donaldpipowitch","id":1152805,"avatar_url":"https://avatars.githubusercontent.com/u/1152805?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldpipowitch","html_url":"https://github.com/donaldpipowitch","followers_url":"https://api.github.com/users/donaldpipowitch/followers","following_url":"https://api.github.com/users/donaldpipowitch/following{/other_user}","gists_url":"https://api.github.com/users/donaldpipowitch/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldpipowitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldpipowitch/subscriptions","organizations_url":"https://api.github.com/users/donaldpipowitch/orgs","repos_url":"https://api.github.com/users/donaldpipowitch/repos","events_url":"https://api.github.com/users/donaldpipowitch/events{/privacy}","received_events_url":"https://api.github.com/users/donaldpipowitch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T05:57:20Z","updated_at":"2016-09-29T14:49:51Z","closed_at":null,"body":"Say I have doc like this:\r\n\r\n```\r\n/**\r\n * Lorem ipsum\r\n * @func\r\n * @name doFoo\r\n * @memberof coolmodule\r\n * @param {Object} params - Blub\r\n * @prop {string} params.id - The ID\r\n */\r\n```\r\n\r\nThis is generated:\r\n\r\n```\r\ninterface ISomemoduleDoFooOptions {\r\n    /**\r\n     * The ID\r\n     */\r\n    id: string;\r\n}\r\n\r\ndeclare module coolmodule {\r\n    /**\r\n     * Lorem ipsum\r\n     * @param params  (Required) Blub\r\n     */\r\n    function doFoo(params: ISomemoduleDoFooOptions): void;\r\n}\r\n```\r\n\r\nIt would probably nicer to have this included _and_ both exported inside the module declaration:\r\n\r\n```\r\ndeclare module coolmodule {\r\n    export interface ISomemoduleDoFooOptions {\r\n        /**\r\n         * The ID\r\n         */\r\n        id: string;\r\n    }\r\n\r\n    /**\r\n     * Lorem ipsum\r\n     * @param params  (Required) Blub\r\n     */\r\n    export function doFoo(params: ISomemoduleDoFooOptions): void;\r\n}\r\n```\r\n\r\nI couldn't work around this by using `@typedef` to extract the config or something like this."}}
{"actor":{"display_login":"jumpinjackie"}}