Typescript: hide redundant type information

Open
#1,711 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

No file, test, or entry point is named; begin by locating the generic code editor's TypeScript hint settings and the logic that displays type hints. Confirm the existing settings behavior, then define the change as hiding hints for explicitly declared types while retaining hints for implicitly inferred types.

Written by the indexing model from the issue text.

Description

Which setting do I need to turn off to disable hints for all explicitly declared types? For example, I have this:

The Typescript types are already explicitly declared (no implicit type inference), so I want to hide the hints (since the information is redundant):

Screenshot at Nov 07 12-13-24

What settings do I need to disable redundant hints (I tried disabling all of them but it doesn't change anything in the (generic) code editor):

Screenshot at Nov 07 12-13-55

What I need is:
Show the hints for all types (functions, properties, etc.) only if they were implicitly derived (= implcit type inference). Otherwise, the hints should not be displayed if the user already explicitly declares the type (because then the information shown in the code editor is redundant).

Dominant language
Java
Stars
203
Forks
76
Avg merge
1d 5h
Merged PRs (30d)
30

Getting set up

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.

More from eclipse-wildwebdeveloper/wildwebdeveloper

All issues in eclipse-wildwebdeveloper/wildwebdeveloper

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.