3 ms·
The classic example is: function double(x) { return x * 2; } const result = double("foo"); Which passes in TS, but fails in Flow. In TS, the 'x' pa
by dsp1234 10y ago
The classic example is:
function double(x) {
return x * 2;
}
const result = double("foo");
Which passes in TS, but fails in Flow. In TS, the 'x' parameter to the double function is inferred as Any.