TypeScript: cannot detect global variables and functions from @types

although we have the type definitions installed via @types, and the tests runs correctly, the IDE cannot detect the global functions and variables defined and instead showing up as multiple errors on the typescript file.
"@types/jasmine": "2.5.41"
However, using typings install --global works though and detects the correct types
PhpStorm 2016.3.1
Build #PS-163.9735.1
Please sign in to leave a comment.
a quick work around to make @types detection work is by appending this line at the top of your typescript file.
/// <reference types="jasmine" />
in this case, its hinting to use the @types/jasmine for type definitions.
apparently PHPStorm can detect this
looks like configuration issue (file not included in tsconfig.json); project that shows it up would be helpful