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-1/

{
  "context": "This criteria evaluates how well the engineer uses ts-api-utils type analysis functions to build a type analysis reporter. The focus is on proper usage of unionConstituents, intersectionConstituents, isFalsyType, isPropertyReadonlyInType, isThenableType, and typeIsLiteral functions.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Union constituent extraction",
      "description": "Uses unionConstituents() function from ts-api-utils to extract constituent types from union types",
      "max_score": 20
    },
    {
      "name": "Intersection constituent extraction",
      "description": "Uses intersectionConstituents() function from ts-api-utils to extract constituent types from intersection types",
      "max_score": 20
    },
    {
      "name": "Falsy type detection",
      "description": "Uses isFalsyType() function from ts-api-utils to determine if a type is definitively falsy",
      "max_score": 15
    },
    {
      "name": "Literal type detection",
      "description": "Uses typeIsLiteral() function from ts-api-utils to identify literal types",
      "max_score": 15
    },
    {
      "name": "Thenable type detection",
      "description": "Uses isThenableType() function from ts-api-utils to detect thenable/awaitable types, passing the required typeChecker, node, and type parameters",
      "max_score": 15
    },
    {
      "name": "Readonly property analysis",
      "description": "Uses isPropertyReadonlyInType() function from ts-api-utils to determine if properties are readonly, passing the type, property name, and typeChecker",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json