Skip to content

VSCode Live view of type declarations, formatted and no truncation

License

Notifications You must be signed in to change notification settings

betafcc/ts-reveal-types

Repository files navigation

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

About

VSCode Live view of type declarations, formatted and no truncation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published