CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-ts-api-utils

tessl install tessl/npm-ts-api-utils@2.0.0

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

Agent Success

Agent success rate when using this tile

79%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.98x

Baseline

Agent success rate without this tile

40%

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
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/ts-api-utils@2.0.x
tile.json