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/

California cannot keep rewarding utilities after catastrophic wildfires

https://calmatters.org/commentary/2026/07/california-rewarding-utilities-after-wildfires/
1•cdrnsf•34s ago•0 comments

Zig's Incremental Compilation Internals

https://mlugg.co.uk/posts/incremental-compilation-internals/
1•garyhtou•35s ago•0 comments

Does every question mark deserve a Betteridge?

https://dynomight.net/betteridge/
1•surprisetalk•1m ago•0 comments

We retested a $48 DigitalOcean VM 3 months later: faster, still variable

https://webbynode.com/articles/same-48-digitalocean-vm-tested-faster-three-months-later
1•gsgreen•1m ago•0 comments

Only two letters score more in Scrabble than in Words With Friends

https://lkforge.com/blog/wwf-vs-scrabble-scoring/
1•lucianBKR•2m ago•1 comments

Anatomy of an AI Kill Chain – Airwars X AI Now Institute

https://ai-killchain.airwars.org
1•janpeuker•3m ago•0 comments

The Devouring of All Knowledge

https://ryanfleck.ca/2026/the-devouring-of-all-knowledge/
1•rflec028•3m ago•0 comments

A tool that prevent agents from cutting their own connection

https://github.com/MildyNora/NetworkSandbox
1•MildyNora•4m ago•0 comments

The Mess, the Commons, and the Paths Out of Mess

https://hamishcampbell.com/the-mess-the-commons-and-the-paths-out-of-mess/
1•speckx•4m ago•0 comments

Spies in the sky: how worried should we be about AI-enabled smart lamp-posts?

https://www.theguardian.com/world/2026/jul/28/spies-in-sky-worried-ai-enabled-smart-lamp-posts-su...
2•Symbiote•4m ago•0 comments

An opinionated guide to which AI to use to do stuff

https://simonwillison.net/2026/Jul/27/an-opinionated-guide-to-which-ai-to-use-to-do-stuff/
1•Brajeshwar•4m ago•0 comments

Show HN: Nutaan – AI-powered voice calling assistant and live chat widget

https://nutaan.com/
1•nutaan•4m ago•0 comments

24,650 internet-accessible BMCs leak password-derived hashes before login

https://lavahq.io/research/bmc-exposure-alert
1•ilreb•5m ago•0 comments

Reddit communities with "sensistive" Trump or Israel-Palestine posts throttled

https://old.reddit.com/r/Fauxmoi/comments/1v8y7o2/to_our_fauxmoi_community/
1•thisislife2•6m ago•0 comments

Gianni Infantino's plan to sell stakes in the World Cup

https://www.thetimes.com/sport/football/article/world-cup-for-sale-gianni-infantino-fifa-wdvtsqfc6
1•matthieu_bl•6m ago•1 comments

If you want to find a developer job abroad in 2026, please read this

https://relocateme.substack.com/p/the-relocation-game-in-tech-has-changed
3•adletbalzhanov•6m ago•0 comments

All Work and No Play

https://asteriskmag.com/issues/15/all-work-and-no-play
1•surprisetalk•6m ago•0 comments

Ethical Cold Outreach

https://blog.val.town/ethical-cold-outreach
1•tionis•7m ago•0 comments

How We Pushed CDC into Postgres

https://www.snowflake.com/en/blog/engineering/postgres-to-snowflake-replication-mirroring/
3•craigkerstiens•7m ago•0 comments

Script Slayer

https://studioaaa.com/script-slayer/
1•skibz•8m ago•0 comments

Vectorise.me – image-to-SVG API with an MCP server for AI agents

https://vectorise.me/developers
1•jonkary•10m ago•0 comments

So, you want to make a game engine (2023)

https://lisyarus.github.io/blog/posts/so-you-want-to-make-a-game-engine.html#part-3
2•kugurerdem•10m ago•0 comments

Show HN: Flashpaper – Self-destructing secret sharing with no database

https://flashpaper.app/
2•minpym•10m ago•2 comments

Everyone Romaine Calm [video]

https://www.youtube.com/watch?v=_9blI4QBSjs
1•mooreds•12m ago•0 comments

Investigate every security event with an AI agent, without the frontier bill

https://www.datadoghq.com/blog/ai/ai-security-detection-pipeline/
1•ngrislain•13m ago•0 comments

Show HN: News headline inside coding agent

https://github.com/dannylee1020/headline
1•dannylee1020•14m ago•0 comments

Why Aren't There C Conferences? (2018)

https://nullprogram.com/blog/2018/11/21/
2•downbad_•14m ago•1 comments

Setup Script Should Support Git Worktrees

https://piechowski.io/post/setup-script-git-worktrees/
3•speckx•14m ago•0 comments

The 2026-07-28 MCP Specification Release Candidate

https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/
1•oss-dev•14m ago•0 comments

Secure email provider mailbox.org does not honor DMARC (German)

https://userforum.mailbox.org/topic/10676-mailbox-org-akzeptiert-gefalschte-mails-trotz-spf-fail-...
2•asimops•15m ago•0 comments