Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dsp1234
on Feb 22, 2017
|
parent
|
context
|
favorite
| on:
Announcing TypeScript 2.2
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: