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/

Eddrit – A lightweight alternative front end for Reddit

https://github.com/corenting/eddrit
1•peterus•1m ago•1 comments

Billions of doses later: Global review confirms mRNA vaccines safe and effective

https://news.ubc.ca/2026/06/mrna-vaccines-are-safe-effective-and-full-of-promise/
3•coloneltcb•3m ago•0 comments

I have a theory about AI fake news site The Editorial

https://werd.io/i-have-a-theory-about-ai-fake-news-site-the-editorial/
1•benwerd•9m ago•0 comments

Australia sues Amazon for making allegedly unfair contracts with subscribers

https://www.bbc.com/news/articles/c20yz9rzwy0o
1•firecall•10m ago•0 comments

AOL and Eventbrite owner Bending Spoons soars 40% on Nasdaq debut

https://www.ft.com/content/aebe2dbb-6d8b-4b3d-82c8-e64aebd4ef70
1•petethomas•14m ago•0 comments

Claude Fable 5 was banned for 18 days – what happened

https://freemalta.com/hub/library/claude-fable-5-was-banned-for-18-days-heres-what-actually-happe...
3•ilhaniremyuce•20m ago•1 comments

Useful Outsourcing is Hard (2024)

https://gwern.net/blog/2024/outsourcing
2•dvrp•23m ago•0 comments

Lddey1

https://blog.cloudflare.com/es-es/welcome-to-connectivity-cloud/
1•Eldeysitodxw•31m ago•0 comments

Show HN: Agent Sessions – A model agnostic Claude managed agents alternative

https://www.agentsessions.dev/
2•iacguy•34m ago•1 comments

AMilliSol

http://www.pumpfun.com
1•AMILLI_AI_CORP•35m ago•0 comments

Nearest Pint, Pub Density Map

https://knowwhereconsulting.co.uk/blog/nearest-pint-pub-density-map/
1•ohjeez•35m ago•0 comments

Partial Evaluation

https://en.wikipedia.org/wiki/Partial_evaluation
1•tristenharr•36m ago•0 comments

Loops in Hatetris

https://qntm.org/loops
1•pavel_lishin•37m ago•0 comments

Making Optimization Work When Labels Are Scarce

https://www.gnosyslabs.com:443/case-studies/safety-classifier-sparse-labels
1•imkodying•37m ago•0 comments

GDstudio: A reimagined editor for Godot projects

https://gdstudio.dev/
2•ilreb•38m ago•0 comments

Show HN: I built a photography weather alert system

https://photosignal.app/
1•ameon•41m ago•0 comments

Supabase experiencing platform issues: Existing DB's cant be restarted, created

https://status.supabase.com/incidents/3tx3nnmbwyh9
1•reassess_blind•42m ago•1 comments

Meta Caps Internal AI Token Spending After Costs Approach Billions in 2026

https://mlq.ai/news/meta-caps-internal-ai-token-spending-after-costs-approach-billions-in-2026/
5•typeofhuman•45m ago•0 comments

Basic Email

https://www.columbia.edu/~njn2118/journal/2026/7/1.html
2•njn•46m ago•0 comments

The <Usermedia> HTML Element

https://developer.chrome.com/blog/usermedia-html-element
10•twapi•47m ago•6 comments

Agents Are Aging Too: Agent Lifespan Engineering for Deployed Systems

https://arxiv.org/abs/2605.26302
1•yubblegum•49m ago•0 comments

Layer_shell.dart – Write a Wayland Shell in Flutter

https://github.com/mattkae/layer_shell.dart
1•matthewkosarek•53m ago•1 comments

Microtubule organization across cell types and states(2021)

https://www.cell.com/current-biology/fulltext/S0960-9822(21)00075-0
1•rolph•53m ago•0 comments

32 Principles of a Viral Product

https://twitter.com/marclou/status/2065385672991752210
2•rmason•54m ago•0 comments

MS Coin – A Layer-1 Privacy Protocol Built in Pure Rust

https://mscoin.network/
1•shaketank•56m ago•0 comments

Punch Card Wreath

https://princessleia.com/journal/2021/10/punch-card-wreath/
1•debo_•56m ago•0 comments

Show HN: Identity Layer for Agents and Autonomous AI

https://github.com/authsec-ai/authsec-ai
1•azifali•56m ago•0 comments

Carmakers Say They'll Leave CA over New Car Privacy Law [video][12 Mins]

https://www.youtube.com/watch?v=i1_8Lj6El8M
4•Bender•1h ago•4 comments

Thinking in Ecosystems: From Climate to Planetary Resilience Tech

https://yanirseroussi.com/2026/06/29/thinking-in-ecosystems-from-climate-to-planetary-resilience-...
3•yanir•1h ago•0 comments

Computational Balloon Twisting: The Theory of Balloon Polyhedra [pdf]

https://cccg.ca/proceedings/2008/paper34full.pdf
3•luu•1h ago•0 comments