Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 644 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 644 Bytes

ts-reveal-types README

If you have problems inspecting complex types from the compact hover tooltip, this extension is for you.

Opens a live view of the type declarations in your file, formatted and in expanded form (no '[...]' truncation).

example

Features

It will reveal any type declarations on your file, and update if you change it.

Reveal an interface

Just spread the interface into a type declaration:

type Revealed = {
  [K in keyof MyInterface]: [MyInterface[K]]
}

Reveal type of a variable

Use typeof and assign to a type declaration

type Revealed = typeof myVar