We know there is a return type, so what are the options? The thing that needs to be fixed to try to avoid all the unknown types in parsing a Tern function type string. In Tern issue https://github.com/marijnh/tern/issues/207 there is a suggestion on how this might be down.