Comprehensive TypeScript type definitions for building Slack applications and integrations with the Node Slack SDK
94
Build a utility module for creating an interactive task assignment interface in Slack messages. The module should allow users to select multiple team members from a predefined list to assign them to a task.
The module should accept:
The module should return a properly typed interactive element structure that:
@generates
export interface TeamMemberOption {
label: string;
value: string;
description?: string;
}
export interface ConfirmationConfig {
title: string;
text: string;
confirmText: string;
denyText: string;
}
export interface TaskAssignmentCollectorConfig {
actionId: string;
teamMembers: TeamMemberOption[];
preSelectedValues?: string[];
confirmation?: ConfirmationConfig;
autoFocus?: boolean;
}
export function createTaskAssignmentCollector(config: TaskAssignmentCollectorConfig): any;Provides Slack Block Kit type definitions for interactive elements.
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