frontpage.
newsnewestaskshowjobs

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/

Show HN: First iOS personal agent that executes on device

https://apps.apple.com/us/app/result-your-personal-agent/id6825805595
1•aaryankushwah•1m ago•0 comments

US air traffic control enters the 21st century, starts to abandon floppy disks

https://www.theregister.com/public-sector/2026/11/06/us-air-traffic-control-enters-the-21st-centu...
1•nephihaha•1m ago•0 comments

Ask HN: If you use Notion or Obsidian, what features should be added?

1•anragyadev•5m ago•0 comments

The Pentagon wants to know who checks code when AI writes it

https://about.gitlab.com/blog/department-of-war-instruction-for-ai-generated-code/
1•qtqtqt•6m ago•0 comments

The Shared Cache; A short novel written by Opus 5.5 based on a true story

https://khaledez.net/blog/the-shared-cache/
1•khaledez•6m ago•0 comments

Show HN: Fermi Poker, a combination of poker betting mechanics with estimation

https://fermi.org
1•danielfetz•7m ago•0 comments

Mini-Manual of Informational Insurgency

https://drive.google.com/drive/folders/1pnjYduytGSPTioRcnA_Ni2X5Tr1wk1HB
1•Tomte•11m ago•0 comments

NASA-Funded Study Details One of Oldest Mars Meteorites Ever Found

https://www.jpl.nasa.gov/news/nasa-funded-study-details-one-of-oldest-mars-meteorites-ever-found/
1•ricksunny•16m ago•1 comments

How many frames does a scroll animation need? (and how big should each be)

https://beta.scrollsequence.com/blog/how-many-frames-scroll-animation
4•hellofromalki•16m ago•0 comments

AARE: A proof-of-concept open-source implementation of Android Auto

https://github.com/prototux/AARE
2•edward•18m ago•0 comments

Layoffs that smells like conspiracy, hard to digest

https://www.shuffle-on.com/blog/ai-layoff-wave-2023-2026
1•lisneanucristia•22m ago•0 comments

Call is being recorded – and broadcast to the internet

https://groundup.org.za/article/your-call-is-being-recorded-and-broadcast-to-the-internet/
2•SkillBeatsAll•24m ago•0 comments

Microcorruption: Classic Web-Based Assembly Reverse Engineering Game

https://microcorruption.com/
1•0x737368•25m ago•0 comments

The vi Editor Turns 50: Interview with Bill Joy (1984)

https://computeradsfromthepast.substack.com/p/unix-review-interviews-sun-co-founder
1•so-cal-schemer•26m ago•3 comments

What happens if all the lights go out? This is the plan for a 'Black Sky' event

https://www.bbc.com/news/articles/ck5ynnj05z8no
1•geox•26m ago•0 comments

Clawdcursor > Computer-Use

https://clawdcursor.com
1•AmDab•28m ago•0 comments

Tamizdat Project: Banned Books from the Cold War to the Present

https://tamizdatproject.org/
1•jruohonen•28m ago•0 comments

Trace – Crash-safe durable Sagas for autonomous AI agents

https://github.com/orikami048/trace-agent-lang
1•orikamiii•30m ago•0 comments

Greece launches semiconductor and microelectronics strategy

https://hccc.org.gr/greece-opens-a-new-chapter-in-microelectronics-and-semiconductors/
2•greekanalyst•33m ago•0 comments

Show HN: Retex, a Faster LaTeX Engine

https://gitlab.com/severin-lemaignan/retex
1•skadge•35m ago•0 comments

Show HN: One-script installer for TRELLIS.2 on Nvidia Blackwell under WSL2

https://github.com/Creepybits/trellis2-blackwell-wsl
1•creepybits•37m ago•0 comments

Acceleration and Resonance [pdf]

https://journals.sagepub.com/pb-assets/cmscontent/ASJ/Acceleration_and_Resonance.pdf
1•jruohonen•38m ago•0 comments

Postcrossing Spotlight: DrHyde from the UK

https://www.postcrossing.com/blog/2026/11/07/postcrossing-spotlight-drhyde-from-the-uk
1•Tomte•39m ago•0 comments

The Verse Programming Language

https://verselang.github.io/book/00_overview/
1•elephantum•42m ago•0 comments

Upload Your RAM

https://uploadyourram.org
18•susanthenerd•43m ago•7 comments

OMLX: Use a second Mac to speed up local LLM prefill 2.9x

https://github.com/jundot/omlx/releases/tag/v0.7.4.dev1
1•joshcsimmons•43m ago•0 comments

London Beer Flood

https://en.wikipedia.org/wiki/London_Beer_Flood
2•RobotToaster•45m ago•0 comments

Activists breach Microsoft data centre construction site; protests spread in EU

https://www.reuters.com/world/europe/activists-breach-microsoft-data-centre-construction-site-pro...
2•vrganj•51m ago•1 comments

What is vibe coding? Definition, meaning and how it works

https://vibecoderjournal.com/what-is-vibe-coding/
1•ahgamerz215•51m ago•0 comments

Ex-Tesla Autopilot head calls vision-only a 'weird religious stance'

https://electrek.co/2026/10/29/ex-tesla-autopilot-head-vision-only-weird-religious-stance/
2•FabHK•58m ago•0 comments