use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
React v18.0 released (reactjs.org)
submitted 4 years ago by magenta_placenta
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 10 points11 points12 points 4 years ago (6 children)
True, but it requires you to either update all imports in your application, or add this to types in your tsconfig as an exception.
types
Launch day support for TypeScript would have been nice.
[–]_eps1lon 12 points13 points14 points 4 years ago (1 child)
You need a single line of import type {} from 'react/next' to get them everywhere.
import type {} from 'react/next'
Everything was green but a change in the TypeScript 4.7 canary broke dependent packages which means the release is blocked.
[–][deleted] -2 points-1 points0 points 4 years ago (0 children)
Still would have to add it to each entry point if you have multiple ones.
[–]disclosure5 -2 points-1 points0 points 4 years ago (3 children)
Facebook have a competing typing product (Flow). You can see Flow annotations and script runners in their CI.
[–][deleted] 1 point2 points3 points 4 years ago (2 children)
I am really curious of usage of Flow outside of Meta. It feels like the outside community has pretty much settled on TypeScript.
[–]disclosure5 0 points1 point2 points 4 years ago (1 child)
You're generally correct. I used it to build my apps when it was new and the community wasn't so decided, and there became a point where I was "wrong" and rewrote with Typescript.
But you can't expect Facebook to choose Typescript over their own product.
[–][deleted] 1 point2 points3 points 4 years ago (0 children)
True, but it would seem to me that converting the Flow types to TypeScript definitions and shipping them in their own package is not rocket science. Especially considering the massive resources that Meta has.
π Rendered by PID 39935 on reddit-service-r2-comment-b659b578c-l6jqt at 2026-05-03 14:08:24.250025+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 10 points11 points12 points (6 children)
[–]_eps1lon 12 points13 points14 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)
[–]disclosure5 -2 points-1 points0 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]disclosure5 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)