Skip to main content

@typescript-eslint/type-utils

npm: @typescript-eslint/type-utils v7.13.1

Type utilities for working with TypeScript within ESLint rules. ✨

This package contains public utilities for working with TypeScript types that ESLint rules often use. Rules declared in @typescript-eslint/eslint-plugin use these utility functions.

The utilities in this package are both:

  • More generally ESLint-focused than the broad TypeScript utilities in ts-api-utils
  • Separated from @typescript-eslint/utils so that that package does not require a dependency on typescript

See Custom Rules for documentation on creating your own custom ESLint rules for TypeScript code.