π 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
- 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.
π 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.