Quramy / tsuquyomi

A Vim plugin for TypeScript

Home Page:http://www.vim.org/scripts/script.php?script_id=5151

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No inferred return type `undefined`

timonson opened this issue · comments

The function tsuquyomi#hint() doesn't seem to be able to return inferred return types in some cases.
In the following example instead of function add(a: number): number | void it returns function add(a: number): number.

function add(a: number) {
  if (a > 10) return a + 10
}
add(10)