Skip to content

Docs: Add a dedicated docs page for type-utils > TypeOrValueSpecifier #9587

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

The TypeOrValueSpecifier utility is used by a couple a few rules now:

...and is pending for:

We've been saying constantly that we want shared documentation for this thing. @abrahamguo's https://github.com/typescript-eslint/typescript-eslint/pull/8556/files#diff-3af7b11cfbfbd4c66519dff13130df296bdf564fbd1056765f1c79dbed9c2485 is a good start. We'll want to add a true docs page for it with the team's recommendations, including:

  • All the things already mentioned in those docs
  • To avoid using it as an allow option whenever possible (+ why)
  • That there is a single string allowed format, but it's deprecated, and will likely eventually be removed (+ why)

Affected URL(s)

https://typescript-eslint.io/packages/type-utils/type-or-value-specifier, maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.team assignedA member of the typescript-eslint team should work on this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions