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

Feature: support interface detailed type hint #13

Open
yanyongyu opened this issue Jun 21, 2023 · 1 comment
Open

Feature: support interface detailed type hint #13

yanyongyu opened this issue Jun 21, 2023 · 1 comment

Comments

@yanyongyu
Copy link

希望能支持interface详细类型信息展示(狗头保命

type A = {
    a: number;
}

interface Props extends A {};
//         ^? interface Props
@NWYLZW
Copy link
Owner

NWYLZW commented Jun 21, 2023

image

在这里的类型会被认为是一个符号,实际上我的实现是通过获取 hover type 来完成的,所以在这里可能没有办法获取到一个符号内部的结构。

我推测 hover type 的 ts lsp 只会展示 literal object type,而像这种符号则会被直接展示出来。

先开着,或许回头能想点办法,或者去 push ts team。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants