CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-ts-api-utils

Utility functions for working with TypeScript's API, providing comprehensive tools for analyzing and manipulating TypeScript AST nodes, types, and compiler APIs.

79

1.97x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This evaluation criteria assesses how well the engineer uses the ts-api-utils package, specifically the modifier checking functionality (includesModifier), to analyze TypeScript class members and their modifiers. The focus is on correct package usage for identifying access modifiers, static, readonly, and abstract modifiers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses includesModifier function",
      "description": "Solution imports and uses the includesModifier function from ts-api-utils to check for modifier kinds on class members",
      "max_score": 30
    },
    {
      "name": "Checks public modifier",
      "description": "Solution uses includesModifier with SyntaxKind.PublicKeyword to identify public members",
      "max_score": 10
    },
    {
      "name": "Checks private modifier",
      "description": "Solution uses includesModifier with SyntaxKind.PrivateKeyword to identify private members",
      "max_score": 10
    },
    {
      "name": "Checks protected modifier",
      "description": "Solution uses includesModifier with SyntaxKind.ProtectedKeyword to identify protected members",
      "max_score": 10
    },
    {
      "name": "Checks readonly modifier",
      "description": "Solution uses includesModifier with SyntaxKind.ReadonlyKeyword to identify readonly members",
      "max_score": 10
    },
    {
      "name": "Checks static modifier",
      "description": "Solution uses includesModifier with SyntaxKind.StaticKeyword to identify static members",
      "max_score": 10
    },
    {
      "name": "Checks abstract modifier",
      "description": "Solution uses includesModifier with SyntaxKind.AbstractKeyword to identify abstract members",
      "max_score": 10
    },
    {
      "name": "Handles combined modifiers",
      "description": "Solution correctly checks for multiple modifiers on a single member, allowing members to appear in multiple categories when they have combined modifiers",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-ts-api-utils

tile.json