You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think a lot of people would like this feature of being able to simply call a method in the way we can do it in C#.
π Motivating Example
E.g. if you have
interface InterfaceA {
}
that you can assign to it an extension method e.g.
function functionA(interface: Interface) { }
Then you simply can do
object: InterfaceA;
object.functionA();
π» Use Cases
What do you want to use this for?
Everywhere cause it makes the code more simple.
What shortcomings exist with current approaches?
It could be that e.g. InterfaceA has already a method called functionA. That would have to be considered.
What workarounds are you using in the meantime?
None.
The text was updated successfully, but these errors were encountered:
π Search Terms
typescript extensions for interfaces
β Viability Checklist
β Suggestion
I think a lot of people would like this feature of being able to simply call a method in the way we can do it in C#.
π Motivating Example
E.g. if you have
interface InterfaceA {
}
that you can assign to it an extension method e.g.
function functionA(interface: Interface) { }
Then you simply can do
object: InterfaceA;
object.functionA();
π» Use Cases
Everywhere cause it makes the code more simple.
It could be that e.g. InterfaceA has already a method called functionA. That would have to be considered.
None.
The text was updated successfully, but these errors were encountered: