google / tern-closure

A Tern plugin adding Closure support.
Apache License 2.0
33 stars 18 forks source link

Support union types #18

Open jgiles opened 10 years ago

jgiles commented 10 years ago

Example:

/** @type {(MyClass|YourClass)} */
var union;
union; //: (MyClass|YourClass)

More importantly, we want proper autocompletion of properties on all types in the union.

MetaMemoryT commented 10 years ago

I have created 2 pull requests: https://github.com/google/tern-closure/pull/34 https://github.com/marijnh/tern/pull/405

angelozerr commented 9 years ago

tern 0.13.0 should support now this issue.