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/

US oil firms sign deals with Iraq to develop alternative shipping routes

https://apnews.com/article/oil-iraq-pipeline-deal-582b42f21cb62cfe8dc6c8e73d1dcafa
1•geox•43s ago•0 comments

Show HN: Yapp.page, publish a webpage from a Claude or ChatGPT chat

https://yapp.page/
1•hpko•6m ago•0 comments

The Sandpaper Cover of the Return of the Durutti Column (2014)

https://daily.redbullmusicacademy.com/2014/04/return-of-the-durutti-column-feature/
2•ravetcofx•8m ago•0 comments

Find What SaaS Tools Competitors Use via Sub-Processors

https://ashishb.net/tech/sub-processors-leak-saas-stack/
2•ashishb•16m ago•0 comments

How Reddit Detects Ban Evasion – and Why a New Account Isn't Enough

https://medium.com/@thesuperrepemail/how-reddit-detects-ban-evasion-and-why-a-new-account-isnt-en...
3•rajsuper123•18m ago•0 comments

DOSBox on OpenVMS (Alpha CPU)

https://astr0baby.online/AXP/OpenVMS/DOSBOX/
1•jandeboevrie•21m ago•0 comments

Vörwatch: The VPS Monitoring Tool

https://medium.com/@vektormemory/v%C3%B6rwatch-the-vps-monitoring-tool-we-built-because-we-needed...
1•vektormemory•21m ago•0 comments

Show HN: Free image tools that never upload your files

https://pixoratools.dev/
1•umarratra•25m ago•0 comments

A search for life on Earth (1993) [pdf]

https://gwern.net/doc/science/physics/astronomy/1993-sagan.pdf
1•mimorigasaka•27m ago•0 comments

AI Mania Is Eviscerating Global Decisionmaking

https://hermit-tech.com/blog/ai-mania-is-eviscerating-global-decisionmaking
1•olalonde•28m ago•0 comments

Ask HN: I've told everyone about my startup and its been harder than I thought

2•bunnybomb2•36m ago•2 comments

San Francisco orders Apple, Google to remove nudify apps from app stores

https://arstechnica.com/tech-policy/2026/07/apple-google-must-stop-profiting-off-ai-nudify-apps-s...
1•rbanffy•38m ago•0 comments

Not Holding Back the Ocean

https://ethanniser.dev/blog/not-holding-back-the-ocean/
1•tosh•43m ago•0 comments

There's a lot of hype around perimenopause. Don't buy it

https://www.technologyreview.com/2026/07/17/1140608/theres-a-lot-of-hype-around-perimenopause-don...
1•joozio•47m ago•0 comments

LLM Cliché Highlighter

https://tools.simonwillison.net/llm-cliche-highlighter
1•m_c•1h ago•0 comments

Can humans hibernate their way to Mars?

https://www.theguardian.com/science/ng-interactive/2026/jul/14/human-hibernation-space-mars
2•tosh•1h ago•0 comments

Agentic AI Is Taking over Execution, Not Just Content Generation

https://themarketingnewsletter.org/p/45-agentic-ai-is-taking-over-execution
1•thenewedrock•1h ago•2 comments

AI and Creativity

https://sunnyamrat.com/posts/2026-07-17-ai-creativity/
1•sunnyam•1h ago•0 comments

What Doom taught us about AI-assisted incident response

https://rootly.com/blog/what-doom-taught-us-about-ai-assisted-incident-response
1•DaWe01•1h ago•0 comments

Teamclaude rewrite in rust, run multiple Claude accounts in parllel

https://github.com/dhkts1/teamclaude-rs
1•dhkts1•1h ago•0 comments

Show HN: Find someone in the dark – light them or light yourself? (Three.js)

https://github.com/skorotkiewicz/signal-in-the-dark
3•modinfo•1h ago•0 comments

The Day I Accidentally Deleted Production

https://arpitbhayani.me/blogs/deleted-production/
2•dubeysatyam•1h ago•0 comments

Maze Bench

https://mazebench.com/
2•tosh•1h ago•0 comments

What Happened to Novell NetWare? Why the King of the Network Disappeared

https://www.youtube.com/watch?v=3NNbj1NoePI
2•cable2600•1h ago•0 comments

AgentGrove – local workspace for AI coding agents in Git worktrees

https://github.com/arnabk/agentgrove
2•arnabk•1h ago•0 comments

Labelled multi-dimensional arrays for representing research data

https://www.djmannion.net/data_nd/index.html
2•zetamax•1h ago•0 comments

I built a tool to prove a human reviewed an AI decision

https://caneni.net/
1•mbugay•1h ago•0 comments

Vice President Mispells « potato » (1992)

https://en.wikipedia.org/wiki/Dan_Quayle
1•jackhalford•1h ago•1 comments

Israeli ministers announce new illegal settlements in Gaza and West Bank

https://www.theguardian.com/world/2026/jul/18/israel-plan-new-illegal-settlements-gaza-west-bank-...
19•hebelehubele•1h ago•0 comments

The cost of saying yes has changed

https://github.blog/engineering/the-cost-of-saying-yes-has-changed/
2•e2e4•1h ago•1 comments