These function can return nullish values but are declared to return a non-nullish type (either Slot or SlotValue or string)
I fixed the return type declaration to match the implementation.
Motivation and Context
It fixes issue #701
Testing
I used npm link so that my skill uses my local version of ask-sdk-core. Then, with ngrok, I exposed my local skill endpoint and tested it with my Alexa device.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Docs(Add new document content)
[ ] Translate Docs(Translate document content)
Breaks TS builds that handled the nullish value at runtime with a try/catch.
Checklist
[x] My code follows the code style of this project
[x] My change requires a change to the documentation
Description
These function can return nullish values but are declared to return a non-nullish type (either
Slot
orSlotValue
orstring
) I fixed the return type declaration to match the implementation.Motivation and Context
It fixes issue #701
Testing
I used
npm link
so that my skill uses my local version ofask-sdk-core
. Then, with ngrok, I exposed my local skill endpoint and tested it with my Alexa device.Types of changes
Breaks TS builds that handled the nullish value at runtime with a try/catch.
Checklist
License