tern
tern copied to clipboard
Overloading of methods
trafficstars
How can add autocomplete support for methods with same name and different parameters?
It's not possible if I remember.
The way we're modeling this is as a union type of the different function types, i.e. fn(string) → string | fn(number) → +Object. It doesn't work perfectly yet, though.
I put what you defined in the "!type" field and it didn't work. Do you have a def example?
@marijnh Do you have a def example for what you said?