3 ms·
Do you have a use case where something would be correctly inferred in Flow but not in TS?
by whatever_dude 10y ago
Do you have a use case where something would be correctly inferred in Flow but not in TS?
- dsp1234 10y agoThe 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.