Skip to content

Commit

Permalink
fix(tutorial): reflect more strict state type
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Oct 8, 2023
1 parent 1bfde9a commit 4de29d3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/webhook/handlers/tutorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from '@line/bot-sdk';
import { CreateReplyMessagesReplyFragment } from 'typegen/graphql';
import {
ChatbotState,
ChatbotStateHandlerParams,
ChatbotStateHandlerReturnType,
Context,
Expand Down Expand Up @@ -84,15 +85,15 @@ function createImageTextBubble(imageUrl: string, text: string): FlexBubble {
}

/**
* @param {string} label Act as quickReply's label and postback's input and displayText
* @param {number} sessionId Search session ID
* @param {string} postbackState Used by `handleInput` to determine which handler to call
* @returns {object} quickReply items object
* @param label Act as quickReply's label and postback's input and displayText
* @param sessionId Search session ID
* @param postbackState Used by `handleInput` to determine which handler to call
* @returns quickReply items object
*/
function createQuickReplyPostbackItem(
label: string,
sessionId: number,
postbackState: string
postbackState: ChatbotState
): QuickReplyItem {
return {
type: 'action',
Expand Down

0 comments on commit 4de29d3

Please sign in to comment.