Why is vscode highlighting my type annotations?

I’m building a simple components with TS/React. I’m finding VSCode is highlighting my type annotations.

A typescript component with highlighted type annotations

In the problems panel I see:

Type annotation information

They are neither warnings nor errors but they are causing a lot of visual noise.

Why am I seeing these? How do I make them go away?

>Solution :

As said by Geoffrey and Nicholas, you are using total-typescript VS Code extension, which displays hints for you to learn Typescript. You can hide these hints by marking them as learned.

Leave a Reply