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

Bug: v6typeMatchesSpecifierLibSpecifier should return true for intrinsic types (string, number, boolean, etc) #6867

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't working
Milestone
@RebeccaStevens

Description

@RebeccaStevens

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Relevant Package

utils

Playground Link

No response

Repro Code

typeMatchesSpecifier(type,{from:"lib",name:"string",},parserServices.program)

ESLint Config

No response

tsconfig

No response

Expected Result

Native types should be considered part of "lib"

Actual Result

Native types aren't match my any of the object specifiers.

Additional Info

This works:

typeMatchesSpecifier(type,"string",parserServices.program)

So maybe this change isn't needed.
Though I'd expect every type to able to be specified with one of the object specifiers.

Versions

packageversion
@typescript-eslint/eslint-plugin6.0.0-alpha.121
@typescript-eslint/parser6.0.0-alpha.121
@typescript-eslint/scope-manager6.0.0-alpha.121
@typescript-eslint/typescript-estree6.0.0-alpha.121
@typescript-eslint/type-utils6.0.0-alpha.121
@typescript-eslint/utils6.0.0-alpha.121
TypeScript5.0.3
ESLint8.36.0
node18.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp