microsoft / microsoft/TypeScript

Indicate in the editor that a type is explicitly `any`

Open
#60,189 2 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Suggestion
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

🔍 Search Terms

any marker editor

✅ Viability Checklist
⭐ Suggestion

Types that are explicitly set to any are sometimes hard to distinguish from actually typed variables in the editor. You might be adopting types while still having a lot of any around and then it would be helpful to call any out more explicitly in the editor.

📃 Motivating Example

I am now using the extension https://marketplace.visualstudio.com/items?itemName=danvk.any-xray which does this:

Image

💻 Use Cases
  1. What do you want to use this for?

Seeing explicit any types easily so that I can work on adding types.

  1. What shortcomings exist with current approaches?

I can disable explicit any by producing errors but that is very aggressive.

  1. What workarounds are you using in the meantime?

Hovering over the type.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue describes an editor indication for explicitly declared any types and points to the any-xray extension as a reference. Start by tracing how TypeScript exposes type information to editors and reviewing related editor or language-service tests; done means the intended indication is implemented without changing runtime output and is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.