Anyone migrated a large Flow codebase (40K+ lines) to TypeScript very easily? Bashing my head against the wall with a personal project, and am dealing with the lack of bigint, proper Symbol support, top-level await, missing core typelibs, type widening, poor IDE support etc...
-
Show this thread
-
TypeScript doesn't support top-level await either


https://github.com/Microsoft/TypeScript/issues/25988 …2 replies 0 retweets 6 likesShow this thread -
Replying to @sebmck
Not pretty, but you can use an immediately-invoked async arrow function.
3 replies 0 retweets 4 likes -
Replying to @rauschma
Wont work for my use-case. I'm using it in a test file to build up individual test-cases based on some fixtures. The test runner relies on all known-tests to be available upon module execution so it can accurately run them.
2 replies 0 retweets 1 like -
/*:: (async () => { */ /*:: }(); */
2 replies 1 retweet 25 likes
Replying to @sophiebits @rauschma
This works and it's amazing. Thank you so much!
11:52 PM - 8 Mar 2019
0 replies
0 retweets
8 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 