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/

Bloomberg Terminal Is Ugly and Clunky–Everyone Still Uses It

https://oztalking.com/en/issues/bloomberg-terminal-lock-in
1•haebom•1m ago•0 comments

Alibaba bans Claude Code as a security risk

https://www.scmp.com/tech/big-tech/article/3359375/alibaba-bans-staff-using-claude-code-over-anth...
1•5701652400•7m ago•0 comments

Scientists say they have built a cell from scratch for the first time

https://www.cnn.com/2026/07/01/science/synthetic-cell-research
1•giuliomagnifico•7m ago•0 comments

What Happens When Your Site Goes Down?

https://urlwatch.io/
2•mssblogs•9m ago•0 comments

How AI models would vote in Sweden

https://www.nordan.ai/research/which-swedish-party-do-llms-vote-for
1•urvader•10m ago•0 comments

California Bans 'Sell by' Labels, Hoping to Cut Food Waste

https://www.nytimes.com/2026/07/02/us/california-food-labels-sell-by.html
1•thunderbong•10m ago•1 comments

Movies I've watched. (623 recorded and counting)

https://artconnects.club/u/bora/movies
2•kaizenb•13m ago•2 comments

EOL DR / End-of-Life Disaster Response

https://github.com/potatoqualitee/eol-dr
1•chris_wot•22m ago•0 comments

Heat wave exposes workers to injury and death

https://www.wsws.org/en/articles/2026/07/03/yash-j03.html
1•t-3•25m ago•1 comments

David Beazley – Programming Courses

https://www.dabeaz.com/courses.html
5•gregsadetsky•26m ago•0 comments

Show HN: An Omegle for Day Trading

https://strangertrade.fly.dev/
1•avneh•27m ago•0 comments

Show HN: FinMav – Screen 3,000+ stocks by describing what you want in English

https://www.finmav.ai
1•amanuelse•28m ago•0 comments

2026 Unslop AI-Written Fiction Contest Results (judged by Gwern Branwen)

https://www.hyperstitionai.com/unslop-results
1•networked•32m ago•0 comments

Magit 4.6 Released

https://emacsair.me/2026/07/01/magit-4.6/
1•signa11•36m ago•0 comments

Varela: Neuromancer-inspired 3D self-mutating coding harness

https://github.com/ajensenwaud/varela/
1•hestefisk•38m ago•1 comments

This is complete software. Can you say that about yours?

https://nonogra.ph/this-is-complete-software-can-you-say-that-about-yours-07-04-2026
5•arkhiver•42m ago•2 comments

Show HN: RightIdea – Validate app ideas with real market data before you build

https://rightidea.app
1•DajiLabs•44m ago•0 comments

A Sort of Buzzing Inside My Head

https://www.nybooks.com/online/2023/06/25/a-sort-of-buzzing-inside-my-head/
1•1vuio0pswjnm7•49m ago•2 comments

AI puts B Corps' values to the test

https://www.fastcompany.com/91568793/ai-puts-b-corps-values-to-the-test
1•1vuio0pswjnm7•54m ago•1 comments

Show HN: High performance command guard and policy enforcement for Agents in Zig

https://github.com/christopherkarani/Orca
2•karc14•56m ago•0 comments

Show HN: Crew – Let Claude Code agents talk to each other

https://github.com/0xmmo/crew
4•mmoustafa•57m ago•2 comments

Linux Looking to Retire a Number of Old ARM Platforms in Early 2027

https://www.phoronix.com/news/Linux-Drop-Old-ARM-2027
2•maxloh•57m ago•0 comments

I am dreading our LLM-written incident report future

https://surfingcomplexity.blog/2026/06/19/i-am-dreading-our-llm-written-incident-report-future/
2•baxtr•58m ago•0 comments

Space startup Katalyst launches orbital rescue for aging NASA observatory

https://www.reuters.com/business/aerospace-defense/space-startup-katalyst-launches-orbital-rescue...
2•JumpCrisscross•1h ago•0 comments

NERM – a tamper-evident audit log that proves itself. Run it yourself

https://github.com/metacentric-tech/nerm-core
1•META-TECH•1h ago•1 comments

What a 1976 Washington Post prediction said about 2026

https://www.washingtonpost.com/history/2026/07/03/what-1976-washington-post-prediction-said-about...
2•reaperducer•1h ago•0 comments

The Age of Decision

https://www.threerulescompany.com/the-age-of-decision
1•dtedesco1•1h ago•0 comments

How Memgraph 3.11 Simplifies Multi-Tenancy for Cross-Database Graph Workloads

https://memgraph.com/blog/memgraph-3-11-multi-tenant-graph-workloads
1•taubek•1h ago•1 comments

Agentic coding notes from Galapagos Island

https://danluu.com/ai-coding/#appendix-agentic-loops-and-writing-this-post
39•gm678•1h ago•17 comments

Redundancy and Bloat Seen in AAA Game Engines

https://zero-irp.github.io/Redundancy-seen-in-AAA-game-engines/
1•davikr•1h ago•0 comments