{"action":"created","issue":{"url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398","repository_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs","labels_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398/comments","events_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398/events","html_url":"https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398","id":326027473,"number":398,"title":"Missing typescript definitions?","user":{"login":"itachiRedhair","id":20207966,"avatar_url":"https://avatars1.githubusercontent.com/u/20207966?v=4","gravatar_id":"","url":"https://api.github.com/users/itachiRedhair","html_url":"https://github.com/itachiRedhair","followers_url":"https://api.github.com/users/itachiRedhair/followers","following_url":"https://api.github.com/users/itachiRedhair/following{/other_user}","gists_url":"https://api.github.com/users/itachiRedhair/gists{/gist_id}","starred_url":"https://api.github.com/users/itachiRedhair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itachiRedhair/subscriptions","organizations_url":"https://api.github.com/users/itachiRedhair/orgs","repos_url":"https://api.github.com/users/itachiRedhair/repos","events_url":"https://api.github.com/users/itachiRedhair/events{/privacy}","received_events_url":"https://api.github.com/users/itachiRedhair/received_events","type":"User","site_admin":false},"labels":[{"id":907548675,"url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/labels/2.x.x","name":"2.x.x","color":"b60205","default":false},{"id":907547932,"url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/labels/closing%20soon%20if%20no%20response","name":"closing soon if no response","color":"c9248c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-24T09:01:50Z","updated_at":"2018-05-27T10:44:08Z","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<!-- Check 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  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Performance issue\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Other... Please describe:\r\n</code></pre>\r\n\r\n<!--- Provide a general summary of the issue in the Title above -->\r\nI am using typescript definitions provided in ask-sdk V2. Everything works fine but when I over over intent of request.intent, it is giving me an error \"Property 'intent' does not exist on type 'Request'\".\r\nI am guessing type definitions are inocomplete here.\r\n\r\n```\r\n    canHandle(handlerInput: Alexa.HandlerInput) {\r\n     const { request } = handlerInput.requestEnvelope;\r\n\r\n     return (\r\n       request.type === intents.type.IntentRequest &&\r\n       request.intent.name === intents.LocateBranch\r\n     );\r\n    },\r\n```\r\n\r\n## Expected Behavior\r\nIt should not give me an error when I hover over request.intent.\r\n\r\n## Current Behavior\r\nIt does not have property intent in type Request.\r\n"},"comment":{"url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/comments/392321473","html_url":"https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398#issuecomment-392321473","issue_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/398","id":392321473,"user":{"login":"itachiRedhair","id":20207966,"avatar_url":"https://avatars1.githubusercontent.com/u/20207966?v=4","gravatar_id":"","url":"https://api.github.com/users/itachiRedhair","html_url":"https://github.com/itachiRedhair","followers_url":"https://api.github.com/users/itachiRedhair/followers","following_url":"https://api.github.com/users/itachiRedhair/following{/other_user}","gists_url":"https://api.github.com/users/itachiRedhair/gists{/gist_id}","starred_url":"https://api.github.com/users/itachiRedhair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itachiRedhair/subscriptions","organizations_url":"https://api.github.com/users/itachiRedhair/orgs","repos_url":"https://api.github.com/users/itachiRedhair/repos","events_url":"https://api.github.com/users/itachiRedhair/events{/privacy}","received_events_url":"https://api.github.com/users/itachiRedhair/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T10:44:08Z","updated_at":"2018-05-27T10:44:08Z","author_association":"NONE","body":"When I use` intents.type.IntentRequest `it give me error. But when I use `\"IntentRequest\"`, it works fine. I don't know where is the problem exactly, because the constant I've defined `intents.type.IntentRequest `actually has the same value `\"IntentRequest\"`."}}
{"actor":{"display_login":"itachiRedhair"}}