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

cmd+左键js能够跳转对应的属性,而ts不能跳转 #289

Open
joey998 opened this issue May 23, 2023 · 2 comments
Open

cmd+左键js能够跳转对应的属性,而ts不能跳转 #289

joey998 opened this issue May 23, 2023 · 2 comments

Comments

@joey998
Copy link

joey998 commented May 23, 2023

为啥components对于某个this.data.prop,如果为js,cmd+左键跳转对应的属性,而使用ts却不能跳转
image
image

@xiaweiss
Copy link

同问

@erygreat
Copy link

erygreat commented Oct 8, 2023

tsconfig.json 中设置一下 noImplicitThis 为 true 试试呢,不设置这个配置 ts 中 this 会默认为 any

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

3 participants