TypeScript does not perform site analysis.
TypeScript sees this, this is normal:
var f = function f( x: any ) {
var y = x * 2;
}
f(null);
The stream sees:
var f = function f( x: ??? ) {
var y = x * 2;
}
f(null);
where is ???determined by viewing calls in the current file. In this case it xhas a bare type nulland is in error.
TypeScript ? , , - , , , , ( ), , , . - fileName, fileName, , , ? TypeScript - " , , ", .
, . , Flow , , "" , . , , , .