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/

Cryptography's "Five Worlds" [video]

https://www.youtube.com/watch?v=RjzSFa03i2U
1•downboots•42s ago•0 comments

Show HN: A tool to make AI show evidence inline

https://github.com/dvelton/eyeball
1•deevelton•1m ago•0 comments

Author of "Careless People" banned from saying anything negative about Meta

https://www.thetimes.com/uk/technology-uk/article/sarah-wynn-williams-careless-people-meta-nrffdfpmf
1•macleginn•1m ago•1 comments

Yes, Therapy Sessions Are Being Used to Train AI

https://www.thebignewsletter.com/p/yes-therapy-sessions-are-being-used
1•jyunwai•3m ago•0 comments

Getting to Know the Know-It-Alls: On a new history of pedantry

https://hedgehogreview.com/issues/humanism-in-a-posthumanist-age/articles/getting-to-know-the-kno...
1•cainxinth•3m ago•0 comments

OpenAI executive shuffle includes new role for COO

https://techcrunch.com/2026/04/03/openai-executive-shuffle-new-roles-coo-brad-lightcap-fidji-simo...
1•SilverElfin•4m ago•0 comments

New radio app in BETA –> Auralo

https://testflight.apple.com/join/mEtdrzZ5
1•marc0janssen•5m ago•1 comments

Weather Channel RetroCast Now Technical Breakdown

https://twitter.com/leemartin/status/2040428548964405402
1•leemartin•7m ago•1 comments

Landdown: Simple Sandboxing for Shell Scripts

https://git.sr.ht/~marcc/landdown
2•fanf2•8m ago•0 comments

Show HN: MyPDFBoy – Free PDF redaction that deletes the data

https://mypdfboy.com/
2•stanguc•8m ago•0 comments

Who was the actual target of the axios supply chain attack?

1•JohannMac•10m ago•0 comments

'The frontline is like Terminator': fighting robots give Ukraine hope in war

https://www.theguardian.com/science/2026/mar/16/a-molten-mushy-state-scientists-may-have-found-a-...
2•brkumar•13m ago•0 comments

Ice Age dice show early Native Americans may have understood probability

https://arstechnica.com/science/2026/04/ice-age-dice-show-early-native-americans-may-have-underst...
2•Brajeshwar•13m ago•0 comments

Boeing 777-9 Maximum Brake Energy Certification Testing [video]

https://www.youtube.com/watch?v=f2YQpDkqkn4
4•xnx•17m ago•2 comments

Apple's Spotlight Search Results Come with Engagement Metrics. No One Knew

https://www.buchodi.com/apples-spotlight-search-results-come-with-engagement-metrics-no-one-knew/
4•lmbbuchodi•22m ago•1 comments

Show HN: A simple iOS app that helps you give yourself some time"

https://apps.apple.com/tr/app/alnuo/id6761344069
3•sezginozgur•23m ago•0 comments

Lisette – Rust syntax, Go runtime

https://lisette.run/
1•darccio•27m ago•0 comments

An Abject Horror

https://blog.mempko.com/an-abject-horror/
2•mpweiher•29m ago•0 comments

Show HN: I made open source, zero power PCB hackathon badges

https://github.com/KaiPereira/Overglade-Badges
3•kaipereira•29m ago•0 comments

The Indie Internet Index – submit your favorite sites

https://iii.social
2•freshman_dev•32m ago•0 comments

Microsoft's new framework for building and orchestrating AI agents

https://github.com/microsoft/agent-framework
2•steveharing1•33m ago•0 comments

Autonomous Vulnerability Hunting with MCP

https://blog.zsec.uk/bullyingllms/
3•pedro84•37m ago•0 comments

Re_terminal: Start your digital resistance – Geyser

https://geyser.fund/project/reterminalonboardingtheresistance?hero=geyserpromotion
3•janandonly•37m ago•0 comments

Intelligence Cannot Be Trained?

2•hyperzzw•39m ago•1 comments

Show HN: Semsei — AI SEO for clicks, not impressions

https://www.semsei.io/en
2•andresdvelez•39m ago•2 comments

Wrote an Honest Comparison of Final Round AI vs. Pramp

https://portlumeai.com/blog/final-round-ai-vs-pramp-interview-prep-comparison
2•portlumeai•40m ago•0 comments

New Advances Bring the Era of Quantum Computers Closer

https://www.quantamagazine.org/new-advances-bring-the-era-of-quantum-computers-closer-than-ever-2...
3•Brajeshwar•40m ago•0 comments

Show HN: Tokencap – Token budget enforcement across your AI agents

https://github.com/pykul/tokencap
2•pykul•41m ago•0 comments

No One at Waffle House Remembers FEMA Official Who Says He Teleported In

https://www.nytimes.com/2026/04/03/us/fema-gregg-phillips-waffle-house-teleportation.html
4•planewave•42m ago•0 comments

Using model-agnostic agentic annotation tools on locally stored files

https://old.reddit.com/r/LLMDevs/comments/1sbusn8/new_pdfviewer_notes_panel_search_downloader_tool/
3•ieuanking•46m ago•0 comments