You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:
Expected Behavior
Can use User-defined Command in addAPLExecuteCommandsDirective.
Current Behavior
When I try to set User-defined Command to command args of addAPLExecuteCommandsDirective, it reports type error.
responseBuilder.addAPLExecuteCommandsDirective("MyTemplate",[{type: "myCommand",<- type error!!},]);
Because addAPLExecuteCommandsDirective expects interfaces.alexa.presentation.apl.Command[] for its argument but Command type only accept built-in commands!!
I'm submitting a...
Expected Behavior
Can use User-defined Command in addAPLExecuteCommandsDirective.
Current Behavior
When I try to set User-defined Command to command args of addAPLExecuteCommandsDirective, it reports type error.
Because
addAPLExecuteCommandsDirective
expectsinterfaces.alexa.presentation.apl.Command[]
for its argument butCommand
type only accept built-in commands!!https://github.com/alexa/ask-sdk-controls/blob/develop/src/responseGeneration/ControlResponseBuilder.ts#L306
https://github.com/alexa/alexa-apis-for-nodejs/blob/master/ask-sdk-model/index.ts#L1172
APL allows developer to define the custom command.
https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-user-commands.html
Possible Solution
The easiest way is remove
Command[]
type. But I'm not sure whether it is the best...Steps to Reproduce (for bugs)
Copy following code and paste it under
render
method of the Act.Context
To implement interactive APL document, User-defined Command is very important. It keeps DRY and can debug easily.
Your Environment
Node.js and NPM Info
The text was updated successfully, but these errors were encountered: