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

Comments

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

The Hypercodex

https://kunnas.com/articles/the-hypercodex
1•ekns•44s ago•0 comments

Iran plots 'infrastructure warfare' against US tech giants

https://www.theregister.com/2026/03/11/iran_threatens_us_tech_companies/
1•samizdis•3m ago•0 comments

Billion-Dollar AI Startup Founded by Teenagers

https://www.wsj.com/business/ai-startup-aaru-young-founders-35da7f87
1•bookofjoe•3m ago•1 comments

The Truth About Salt – By a Midwestern Doctor

https://www.midwesterndoctor.com/p/the-truth-about-salt-efa
2•bilsbie•7m ago•0 comments

Ask HN: Anyone ever deliberately left out code to thwart scrapers?

1•truelinux1•7m ago•0 comments

Revolut gets full UK banking licence after years-long wait

https://www.reuters.com/business/finance/revolut-gets-full-uk-banking-licence-after-years-long-wa...
2•absqueued•7m ago•0 comments

AgentCard – Prepaid virtual cards for agents

https://agentcard.sh/
1•compootr•7m ago•0 comments

Tinnotu- reward job for writers.

1•hmnt•8m ago•0 comments

Anduril doubles the size of its space unit

https://arstechnica.com/space/2026/03/anduril-the-autonomous-weapons-maker-doubles-the-size-of-it...
1•worik•8m ago•0 comments

As a teacher and nontechnical guy, I want to say thank you to Karpathy

https://github.com/topherchris420/james_library
4•cwoodyard•10m ago•1 comments

I built Tinnotu – a platform where writers can publish and earn

1•hmnt•10m ago•0 comments

Taalas AI SDK Provider

https://github.com/welidev/taalas-ai-provider
1•weli•12m ago•0 comments

Codix: Code indexing and refactoring tools for AI agents

https://github.com/ogregoire/codix
1•olivergregory•12m ago•1 comments

Hiding Code in Code

https://harttraveller.com/2026/03/11/hiding-code-in-code.html
3•harttrav•13m ago•0 comments

I built a Mac utility called QueryGrid to solve "search tunnel vision."

https://entikma.gumroad.com/l/yrrfbf
1•fluffy_set•13m ago•1 comments

OBS 32.1.0 Released with WebRTC Simulcast

https://github.com/obsproject/obs-studio/releases/tag/32.1.0
1•Sean-Der•13m ago•1 comments

Official announcement: It's time to end the tyranny of officially

https://www.ianvisits.co.uk/articles/official-announcement-its-time-to-end-the-tyranny-of-officia...
1•edward•14m ago•0 comments

Build Your Own Key-Value Storage Engine (Written in Collaboration with ScyllaDB)

https://read.thecoder.cafe/p/build-your-own-kv-engine
2•0xKelsey•15m ago•0 comments

Show HN: LLM Observability Stack for Local Dev – Agent Super Apy

https://github.com/simple10/agent-super-spy
1•simple10•19m ago•0 comments

Building Better Country Selects

https://talysto.com/blog/building-better-country-selects/
3•dlrush•20m ago•1 comments

I Left Anthropic: A note and a letter to former colleagues

https://mrinank.substack.com/p/why-i-left-anthropic
6•nadis•22m ago•2 comments

Addressing GitHub's recent availability issues

https://github.blog/news-insights/company-news/addressing-githubs-recent-availability-issues-2/
4•SolarToaster•23m ago•1 comments

Hologram v0.8.0: Elixir Gets JavaScript Interop

https://hologram.page/blog/hologram-v0-8-0-javascript-interop
2•bartblast•25m ago•1 comments

ReleaseGuard – scan and harden your dist/ before it ships (open source)

1•Helixar•26m ago•0 comments

Show HN: Google Home Camera to KDE Plasma Overlay Live Stream via WebRTC Demo

https://github.com/hparadiz/camera-notif
1•hparadiz•27m ago•0 comments

BSocial – Business-sector social powered by Ethereum

https://bsocial.site
1•mannders•28m ago•1 comments

Six-Day and IP Address Certificates Available in Certbot

https://letsencrypt.org/2026/03/11/shorter-certs-certbot
2•hn_acker•29m ago•0 comments

Claude Code isn't going to replace data engineers (yet)

https://rmoff.net/2026/03/11/claude-code-isnt-going-to-replace-data-engineers-yet/
1•rmoff•31m ago•1 comments

AI "journalists" prove that media bosses don't give a shit

https://pluralistic.net/2026/03/11/modal-dialog-a-palooza/
4•hn_acker•31m ago•2 comments

The Talent Pipeline Is Collapsing

https://newsletter.thelongcommit.com/p/the-talent-pipeline-is-collapsing
2•ragall•32m ago•0 comments