Description
We can have tests verifying all explicit types of listeners are available in TypeScript. For instance, for view_submission handling, the following code would be the case. I haven't checked all others yet but having TS tests like this helps us detect breaking changes and also share examples when answering questions.
import { App, Middleware, SlackViewMiddlewareArgs, ViewSubmitAction } from '@slack/bolt';
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET
});
const modalListener: Middleware<SlackViewMiddlewareArgs<ViewSubmitAction>> = async ({ ack }) => {
await ack();
};
app.view("modal", modalListener);
What type of issue is this? (place an x in one of the [ ])
Requirements (place an x in each of the [ ])
Description
We can have tests verifying all explicit types of listeners are available in TypeScript. For instance, for
view_submissionhandling, the following code would be the case. I haven't checked all others yet but having TS tests like this helps us detect breaking changes and also share examples when answering questions.What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])