refacto(webhook): simplify text handlers as well #799
Annotations
10 errors and 8 warnings
install-and-test:
src/webhook/handleInput.ts#L1
Type '{ message: { type: "text"; text: string; emojis?: { index: number; length: number; productId: string; emojiId: string; }[] | undefined; mention?: { mentionees: { index: number; length: number; userId: string; }[]; } | undefined; } & EventMessageBase; ... 4 more ...; replyToken: string; }' is not assignable to type 'ChatbotEvent'.
|
install-and-test:
src/webhook/handleInput.ts#L1
Cannot assign to 'params' because it is a constant.
|
install-and-test:
src/webhook/handleInput.ts#L1
Cannot assign to 'params' because it is a constant.
|
install-and-test:
src/webhook/handleInput.ts#L1
Argument of type 'ChatbotStateHandlerParams' is not assignable to parameter of type 'ChatbotPostbackHandlerParams'.
|
install-and-test:
src/webhook/handleInput.ts#L1
Cannot assign to 'params' because it is a constant.
|
install-and-test:
src/webhook/handlePostback.ts#L1
Argument of type 'ChatbotPostbackHandlerParams' is not assignable to parameter of type 'ChatbotStateHandlerParams'.
|
install-and-test:
src/webhook/handlePostback.ts#L1
Argument of type 'ChatbotPostbackHandlerParams' is not assignable to parameter of type 'ChatbotStateHandlerParams'.
|
install-and-test:
src/webhook/handlers/askingArticleSource.ts#L1
Property 'searchedText' does not exist on type 'Context | Record<string, never>'.
|
install-and-test:
src/webhook/handlers/askingArticleSubmissionConsent.ts#L1
Property 'searchedText' does not exist on type 'Context | Record<string, never>'.
|
install-and-test:
src/webhook/handlers/askingArticleSubmissionConsent.ts#L1
Property 'searchedText' does not exist on type 'Context | Record<string, never>'.
|
install-and-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
install-and-test:
src/liff/components/ArticleCard.svelte#L104
A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event
|
install-and-test:
src/liff/components/Card.svelte#L24
A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event
|
install-and-test:
src/webhook/handleInput.ts#L9
'ChatbotStateHandlerReturnType' is defined but never used
|
install-and-test:
src/webhook/handlers/tutorial.ts#L6
'ManipulationError' is defined but never used
|
install-and-test:
src/webhook/handlers/tutorial.ts#L17
'ChatbotPostbackHandler' is defined but never used
|
install-and-test:
src/webhook/handlers/tutorial.ts#L20
'ChatbotStateHandlerParams' is defined but never used
|
install-and-test:
src/webhook/handlers/tutorial.ts#L22
'Context' is defined but never used
|