ananthakumaran / tide

Tide - TypeScript Interactive Development Environment for Emacs
GNU General Public License v3.0
1.46k stars 109 forks source link

Feature Request: Extracting/Copying a function's return type #447

Closed m1cm1c closed 2 years ago

m1cm1c commented 2 years ago

Relevant Version Numbers

Feature Request

Tide is able to display a function's type – including the type of its return value – in a transient window. However, it's not possible to switch to this window nor is there any buffer in the buffer list corresponding to the last type shown.

Because a function's return type can be quite complex (e.g. in the case of a function returning a big object), it'd be of great help to be able to copy that return type to then insert it into a proper type definition and annotate the function with the name of that type definition.

ananthakumaran commented 2 years ago

check the second FAQ https://github.com/ananthakumaran/tide#faq

m1cm1c commented 2 years ago

@ananthakumaran Thank you very much!

I misunderstood what this command does. To prevent others from misunderstanding what it does, I propose #448.

ananthakumaran commented 2 years ago

Thanks, merged