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 -
In tests, ie nodejs environment, you may synchronously _wait_ for a promise, which is top level await you are looking for -https://github.com/abbr/deasync
1 reply 1 retweet 1 like
Native module is a no-go but thanks for the recommendation, surprised at how small the code is!
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 