frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•1y ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Context Forking to Save Time, Tokens and Trouble

https://www.humanlayer.com/blog/context-forking-to-save-time-trouble-and-tokens
1•0xblacklight•1m ago•0 comments

Show HN: Pico-intl – Type-safe internationalization with CLI localization gates

https://github.com/Elioz404/pico-intl
1•Elioz404•2m ago•0 comments

Gas Stations Under Attack

https://www.newsweek.com/iran-hacking-tank-readers-us-gas-stations-report-11957814
1•yoloman2•2m ago•0 comments

Erlang/OTP 29.0

https://www.erlang.org/news/188
1•pyinstallwoes•4m ago•0 comments

Urlsify.com Free (forever) Link shortener with Analytics

https://old.reddit.com/r/startups_promotion/comments/1te5th8/urlsifycom_free_forever_link_shorten...
1•godlymod•6m ago•0 comments

Broken windows theory

https://en.wikipedia.org/wiki/Broken_windows_theory
1•Austin_Conlon•7m ago•0 comments

Ghost Job Detector – AI that decodes fake job posts and HR lies

https://ghost-job-detector-rlcx.vercel.app/
1•aliabdm•7m ago•0 comments

NASA-cleanroom microbial isolates survival in simulated space/Martian conditions

https://journals.asm.org/doi/10.1128/aem.02065-25
1•bookofjoe•8m ago•0 comments

Colorado governor commutes sentence of election denier Tina Peters

https://www.theguardian.com/us-news/2026/may/15/colorado-governor-tina-peters
1•asib•12m ago•0 comments

SQL patterns I use to catch transaction fraud

https://analytics.fixelsmith.com/posts/sql-fraud-patterns/
1•redbell•15m ago•0 comments

Shell RT

https://github.com/wgallios/shell-rt
1•wgallios•17m ago•0 comments

How Diamonds Are Made

https://diamond.jaydip.me/
1•lemonberry•19m ago•0 comments

Striking New Views of the First Atomic Bomb Test

https://spectrum.ieee.org/trinity-nuclear-test
2•lemonberry•20m ago•0 comments

Google tests 5 GB cap for users who skip phone numbers

https://www.theregister.com/personal-tech/2026/05/15/google-tests-5-gb-cap-for-users-who-skip-pho...
1•jnord•21m ago•0 comments

Tuwunel – Matrix Chat and Voice/Video/Screen Conferencing for Groups

https://docs.zeropolis.net/doku.php/tech:tuwunel
1•unethical_ban•22m ago•1 comments

Datacenters slurping juice help drive 75% jump in PJM power prices

https://www.theregister.com/on-prem/2026/05/15/datacenters-slurping-juice-help-drive-75-jump-in-p...
1•jnord•22m ago•0 comments

Spectre Programming Language

https://spectre-docs.pages.dev
2•asdkop•22m ago•0 comments

OnlyCats – TikTok for Cats

https://onlycats.cc
3•stagas•23m ago•0 comments

Ask a Foolish Question

https://www.gutenberg.org/cache/epub/33854/pg33854-images.html
1•orsenthil•24m ago•1 comments

Show HN: WolfSPDM a embedded focused requester SPDM 1.2 Stack built on WolfSSL

https://github.com/aidangarske/wolfSPDM
1•aidangarske•26m ago•0 comments

Programming Z3

https://z3prover.github.io/papers/programmingz3.html
2•RohanAdwankar•26m ago•0 comments

Upgrade Symfony 2.8.x to 7x Prime v2.9.0.0 – Tested With PHP 8.5.6

https://blog.se7enx.com/7x-releases-7x-prime-v2-9-0-0-the-symfony-v2-drop-in-upgrade-to-php-8-sup...
1•7x•27m ago•0 comments

Comments Are More Important Than Code–Jef Raskin (2005)

https://queue.acm.org/detail.cfm?id=1053354
1•danhite•28m ago•1 comments

Squillions

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
2•hhs•28m ago•0 comments

What I Learned About Resilience From Y Combinator [video]

https://www.youtube.com/watch?v=KBjtRJSblMU
1•billclerico•33m ago•1 comments

Congress Introduces Bill to Permanently Block Chinese Vehicles from US

https://www.caranddriver.com/news/a71293972/congress-introduces-bill-chinese-cars-ban/
1•m463•33m ago•1 comments

Book review: Time and the world

https://ndpr.nd.edu/reviews/time-and-the-world-every-thing-and-then-some/
1•hhs•35m ago•0 comments

The dawn of 24/7 solar power

https://www.ft.com/content/b5c53f48-0f8c-4ef8-9152-53feffe60461
3•doener•36m ago•0 comments

Adobe Latest Target in Wave of Lawsuits over AI Voice Training

https://news.bloomberglaw.com/privacy-and-data-security/adobe-latest-target-in-wave-of-lawsuits-o...
1•1vuio0pswjnm7•40m ago•0 comments

Hawaii passes law bypassing Citizens United, governor signs it

https://ca.news.yahoo.com/hawaii-law-targets-corporate-influence-024038159.html
21•pzxc•43m ago•2 comments