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
Quality

Pending

Does it follow best practices?

Impact

79%

1.97x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses ts-api-utils type guard functions to identify and classify different TypeScript AST node types. The focus is exclusively on proper usage of the package's type guard API for analyzing TypeScript syntax nodes.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Type keyword guards",
      "description": "Uses ts-api-utils type guard functions (isAnyKeyword, isBooleanKeyword, isNumberKeyword, isStringKeyword, isNullKeyword) to identify and count type keyword nodes in the AST",
      "max_score": 30
    },
    {
      "name": "Boolean literal guards",
      "description": "Uses ts-api-utils type guard functions (isTrueKeyword, isFalseKeyword) to identify and count boolean literal nodes in the AST",
      "max_score": 20
    },
    {
      "name": "Modifier keyword guards",
      "description": "Uses ts-api-utils type guard functions (isPublicKeyword, isPrivateKeyword, isProtectedKeyword, isStaticKeyword, isReadonlyKeyword, isAbstractKeyword) to identify and count modifier nodes in the AST",
      "max_score": 30
    },
    {
      "name": "AST traversal",
      "description": "Implements proper AST traversal using TypeScript compiler API (forEachChild or similar) to visit all nodes in the syntax tree for classification",
      "max_score": 20
    }
  ]
}

tile.json