Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focusing a type #35

Open
b0o opened this issue May 26, 2023 · 0 comments
Open

Focusing a type #35

b0o opened this issue May 26, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@b0o
Copy link

b0o commented May 26, 2023

While exploring complex types, I often create dummy types as a way to explore a certain part of the type in ts-type-explorer. For example, if I'm exploring this type:

type Context = InferContext<createContext>

I might want to explore Context['data']['user'] in more detail without hitting the recursion limit, so I'll do:

type Context = InferContext<createContext>
type Foo = Context['data']['user']

Instead, it would be nice if I could double-click the Context['data']['user'] node in the ts-type-explorer tree to "focus" it, making it the root of the tree.

@b0o b0o mentioned this issue May 26, 2023
@mxsdev mxsdev added enhancement New feature or request good first issue Good for newcomers labels Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants