LoginSignup
5
2

More than 5 years have passed since last update.

ask-sdk v2 で別のインテントハンドラーに処理を移譲する書き方

Posted at

v1 では this.emitWithState で処理を移譲することができた。

v2 だとシンプルにこう書けば良いらしい。


const fooHandler = {
    canHandle(input) {
        ....your logic
    },
    handle(input) {
        // invoke another handler
        return barHandler.handle(input);
    }
}

参考

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2