Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enhancement: Remove deprecated getTypeArguments from type-utils #8930

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

type-utils

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

Back in #7834, we noted that the getTypeArguments function in type-utils is no longer necessary. It wrapped around a checker.getTypeArguments function added in TypeScript 3.7... which is well below the minimum version of TypeScript we support! The only reason we didn't delete the getTypeArguments function was that it would be a breaking change for API consumers.

But, we're working on a v8 major version - now's the time to delete the unnecessary code! 🔪

https://github.com/typescript-eslint/typescript-eslint/blob/96abf181410b7685dfdb0eb8313c43d1675881e2/packages/type-utils/src/getTypeArguments.ts

Additional Info

Note that the PR to delete this should be targeted against the v8 branch.

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedenhancementNew feature or requestgood first issueGood for newcomerslocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions