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•11mo ago

Comments

bastawhiz•11mo ago
Is this a problem that people actually have?
xeromal•11mo ago
Fun side project man!
primitivesuave•11mo 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•11mo 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•11mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•11mo 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•11mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Modular DC construction at $4.5-6.5M/MW vs. $11.3M/MW traditional

1•jaynamburi•1m ago•0 comments

Commission awards €180M tender for sovereign cloud to 4 European providers

https://ec.europa.eu/commission/presscorner/home/en
1•ptdorf•1m ago•0 comments

H.R. 8250 – Parents Decide Act (mandate OS age validation)

https://www.congress.gov/bill/119th-congress/house-bill/8250/text
1•rdl•2m ago•0 comments

Testosterone shifts political preferences in weakly affiliated Democratic men

https://www.psypost.org/scientists-discover-weak-dems-have-highest-testosterone-but-theres-an-int...
1•bilsbie•2m ago•0 comments

Three years in amber: resurrecting WASM-AI from long ago

https://wasmai.vercel.app/resurrection
1•hrishi•2m ago•0 comments

ShieldPi – MCP server for monitoring deployed AI agents

https://pypi.org/project/shieldpi-mcp/
1•Ch_Avinash•3m ago•0 comments

Show HN: Reloadium Search Describe what you want get optimal Google queries

1•julienreszka•3m ago•0 comments

Show HN: WordFor – a free, open, private reverse dictionary running on browser

https://wordfor.xyz/
1•zshn25•4m ago•0 comments

Show HN: Open Access Qwen3.6-35B-A3B-UD-Q5_K_M with TurboQuant

1•freakynit•5m ago•0 comments

Spousal Preferences Impact Career Outcomes of Men and Women

https://www.nominalnews.com/p/spousal-preferences-career-gender-pay-gap
1•NomNew•6m ago•0 comments

Show HN: GetHireToday – AI resume builder that targets ATS keyword matching

https://gethiretoday.com
1•Haroonbasil•8m ago•1 comments

Data centre electricity use soared by 17% in 2025 - IEA

https://www.iea.org/news/data-centre-electricity-use-surged-in-2025-even-with-tightening-bottlene...
1•giuliomagnifico•9m ago•0 comments

GenAI Fails – A list of epic LLM fails

https://github.com/hb20007/awesome-gen-ai-fails
1•hb20007•9m ago•1 comments

EP Hearing: Should Video Game Publishers Be Allowed to Disable Games You Bought

1•haunter•10m ago•0 comments

Isaac Asimov: The Last Question

https://hex.ooo/library/last_question.html
1•ColinWright•10m ago•0 comments

Why having "humans in the loop" in an AI war is an illusion

https://www.technologyreview.com/2026/04/16/1136029/humans-in-the-loop-ai-war-illusion/
1•joozio•11m ago•0 comments

We beat Google's zero-knowledge proof of quantum cryptanalysis

https://blog.trailofbits.com/2026/04/17/we-beat-googles-zero-knowledge-proof-of-quantum-cryptanal...
2•ingve•12m ago•0 comments

Show HN: My fun laugh inducing/team building app, for dev or sales teams for ex

https://gifoftheweek.com
1•etiennead•14m ago•0 comments

One source of truth for buy-it-for-life products: would love your feedback

https://www.izyt.io/
1•lucci11•16m ago•1 comments

Who Wrote These Laws

https://agelesslinux.org/lobbyists.html
1•pbiggar•16m ago•0 comments

SteamOS ARM64 Reaches Nintendo Switch in First Experiment

https://onejailbreak.com/blog/steamos-runs-on-nintendo-switch/
4•SockThief•18m ago•0 comments

Mozilla launches Thunderbolt AI client with focus on self-hosted infrastructure

https://arstechnica.com/ai/2026/04/mozilla-launches-thunderbolt-ai-client-with-focus-on-self-host...
1•tomrod•19m ago•0 comments

Rust Koans

https://rust-koans.stonecharioteer.com
3•stonecharioteer•22m ago•0 comments

As helium-3 runs scarce, researchers seek new ways to chill quantum computers

https://www.science.org/content/article/helium-3-runs-scarce-researchers-seek-new-ways-chill-quan...
1•bookofjoe•22m ago•0 comments

FortyOne OS – an SMS-first open-source multi user AI assistant OS

1•glitchnsec•22m ago•0 comments

Why Another US Attempt on Greenland Looks Worryingly Inevitable [video]

https://www.youtube.com/watch?v=g1Bup39kwyM
1•Imustaskforhelp•23m ago•0 comments

I Streamed My Hard Drive to the World [video]

https://www.youtube.com/watch?v=Qmds7-mwCMg
1•edward28•25m ago•0 comments

Billionaire John Arnold Warns of Debt, Addiction in Online Sports-Betting Boom

https://www.bloomberg.com/news/articles/2026-04-17/billionaire-john-arnold-warns-of-debt-addictio...
1•helsinkiandrew•25m ago•1 comments

OPC Workflow – Three Markdown files that enforce discipline on AI coding tools

1•yoyayoyayoya•26m ago•0 comments

The macOS 26 Clock app still has an obvious bug

https://eclecticlight.co/2026/04/17/five-months-later-and-the-clock-app-still-has-an-obvious-bug/
2•chmaynard•26m ago•0 comments