CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-slack--types

Comprehensive TypeScript type definitions for building Slack applications and integrations with the Node Slack SDK

94

1.11x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively an engineer uses the @slack/types package to build Slack Block Kit messages, specifically focusing on the correct usage of DividerBlock and SectionBlock types for creating visually structured messages.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "DividerBlock usage",
      "description": "Uses the DividerBlock type from @slack/types to create divider blocks with the correct structure ({ type: 'divider' })",
      "max_score": 30
    },
    {
      "name": "SectionBlock usage",
      "description": "Uses the SectionBlock type from @slack/types to create section blocks with proper text content using mrkdwn text objects",
      "max_score": 25
    },
    {
      "name": "Proper type imports",
      "description": "Imports the necessary types (DividerBlock, SectionBlock, Block, or KnownBlock) from @slack/types package",
      "max_score": 15
    },
    {
      "name": "Return type accuracy",
      "description": "Function returns an array properly typed with Block Kit block types (e.g., Array<DividerBlock | SectionBlock> or KnownBlock[] or Block[])",
      "max_score": 15
    },
    {
      "name": "Divider placement logic",
      "description": "Correctly implements the requirement to place dividers between sections but not after the last section",
      "max_score": 10
    },
    {
      "name": "Block structure correctness",
      "description": "All blocks follow the correct structure as defined by @slack/types (e.g., section blocks have type: 'section' and text property, dividers have type: 'divider')",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-slack--types

tile.json