I've been trying for way too long to get the VSC tooltip to show me a function's parameters' properties:
Hovering over an Interface gave me nothing:
Hovering over a Type worked, which was exciting and also weird because the Interface doesn't recursively expand:
Unfortunately, hovering over a function doesn't expand its params:
Am I missing something? It'd be incredible if I could see a parameter's shape or Type doc without having to go to the function's file/d.ts, and then to the param's type file.
Example with an inferred type:
Or this beauty VS Code gives you while typing:
Did just discover the "Add Missing Properties" which looks amazingly helpful:
Thank you for your help!
Recursive introspection is kind of a sore spot in TS. However, you can use cmd / ctrl + click on a type name to go to the place where it's defined (or view a list of references if there are multiple).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.