Add extract interface refactoring

Topics: General
Oct 25, 2012 at 7:37 AM

E.g. when you write a class, suddenly you decide it might be usefull to expose it...

Oct 25, 2012 at 8:38 AM

To restate you... you're saying that when you define class A you may then want to say class B implements A

Oct 25, 2012 at 2:41 PM
Edited Oct 25, 2012 at 2:43 PM

Suppose I write a .Net class library X to be used in web apps, which also contains typescript with class A.
In libray X all .ts files have been compiled to javascript, and these are embedded resources in the DLL.

web app Y uses class library X  (so it is easy to update javascript A) 

Then, I want to use functions of A inside a .ts script specific for web app Y... you don't want to add class A ts file to web app Y, to get code completion, or you get 2 times javascript for A, once from library X, once from compiling ts file inside web app Y

So I want to have an interface file for A, that can be added to web app Y, so I get code completion for A members.
then it would be easy if you could generated an interface from A, so it can be used inside web app Y..