Comprehensive TypeScript type definitions for building Slack applications and integrations with the Node Slack SDK
94
Build a function that generates a Slack Block Kit message for conducting team surveys. The message should collect multiple responses from team members using various multi-select input types.
Create a TypeScript function createTeamSurveyMessage that returns a valid Slack message structure with blocks for collecting survey responses.
The survey message should include:
Each input block should:
The skill areas and project phases should use static options with both a text label and a value.
Provides TypeScript type definitions for Slack Block Kit components including blocks, elements, and composition objects.
Input: Call createTeamSurveyMessage()
Expected Output: Function returns an object containing:
blocks array propertyFile: survey.test.ts
Input: Call createTeamSurveyMessage() and examine the input blocks
Expected Output: The message structure includes:
File: survey.test.ts
Input: Call createTeamSurveyMessage() and examine the static multi-select options
Expected Output: Each static multi-select element contains:
options array with at least 3 optionstext object and a value propertytype property set to either "plain_text" or "mrkdwn"File: survey.test.ts
Install with Tessl CLI
npx tessl i tessl/npm-slack--typesdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10