How to "extract interface from a class" in TypeScript using VSCode?

Viewed 30

For example, in C# and Visual Studio, you can right click on class, and click on an option to extract an interface from a class, which will basically auto-generate all the public methods/properties signatures as an interface. This feature is a pretty handy refactoring when you're trying to make code unit-testable.

Is there a way to do the above using TypeScript and VSCode? It doesn't look like this feature is supported out of the box.

1 Answers
Related