Skip to content

Indicate in the editor that a type is explicitly anyΒ #60189

@bpasero

Description

@bpasero

πŸ” 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions