Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[no-unnecessary-type-arguments] Flags a violation for identically-named but different types #4489

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@NickHeiner

Description

@NickHeiner
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I haveread the FAQ and my problem is not listed.

Repro

Playground

typeDefaultE={foo:string};typeT<E=DefaultE>={box:E};typeG=T<DefaultE>;declare module'bar'{typeDefaultE={somethingElse:true};// This is flagged as an error. The name `DefaultE` is the same, but the type is different.typeG=T<DefaultE>;}

Expected Result
The rule only flags violations when the type argument is identical to the default.

Actual Result
The rule flags violations when the type argument is different from the default, but has the same name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp