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

Comments

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

Just how slow are slow languages?

https://cbarrete.com/slow-langs.html
1•MrBuddyCasino•2m ago•0 comments

How to Read Financial Newspapers Without Getting Lost

https://world-newspapers.net/blog/how-to-read-financial-newspapers
1•sm-techq•4m ago•0 comments

Show HN: Should we gamify vibecoding? VibeSlots: bet when u vibe code

https://github.com/crispyberry/slots
1•ssslvky1•4m ago•0 comments

Microsoft's Dealings with OpenAI Still Need More Sunlight

https://www.wsj.com/tech/ai/microsofts-dealings-with-openai-still-need-a-lot-more-sunlight-f001cb19
1•jgalt212•8m ago•0 comments

Closing the Loop: Building Shapes with a Planar Graph

https://www.amygoodchild.com/blog/building-shapes-with-a-planar-graph
1•adrianhoward•9m ago•0 comments

Interesting SPI Routing with iCE40 FPGAs

https://danielmangum.com/posts/spi-routing-ice40-fpga/
2•hasheddan•10m ago•0 comments

Steven Heller's Font of the Month: Archive Matrix

https://ilovetypography.com/2025/11/07/steven-hellers-font-of-the-month-archive-matrix/
2•baruchel•12m ago•0 comments

Show HN: DepHealth – Health score for your project's dependencies

https://dephealth.io
2•nrig•14m ago•0 comments

As U.S. and E.U. Retreat on Climate, China Takes the Leadership Role

https://e360.yale.edu/features/china-climate-diplomacy
2•YaleE360•15m ago•0 comments

Ask HN: Best Typewriter in 2025?

2•simonebrunozzi•15m ago•1 comments

A guide to making AI-generated art physical

https://autoncorp.com/resources.html
1•simonpure•17m ago•0 comments

Simple Webhook-Tester in OpenShift

https://www.zufallsheld.de/2025/11/10/webhook-tester-in-openshift/
1•zufallsheld•20m ago•0 comments

Where You See a Fancy Fish, Engineers See Alan Turing's Math

https://www.nytimes.com/2025/11/06/science/alan-turing-patterns-boxfish.html
1•bookofjoe•20m ago•1 comments

Vitamin D3 breakthrough halves risk of second heart attack

https://www.sciencedaily.com/releases/2025/11/251110021043.htm
2•Noaidi•21m ago•0 comments

Feeling Great About the Economy? You Must Own Stocks

https://www.wsj.com/economy/consumers/economy-sentiment-stock-market-investors-2eb1e772
2•mancerayder•22m ago•0 comments

Inside A Texas Church's Training Academy for Christians Running for Office

https://fortworthreport.org/2025/11/10/fort-worth-mercy-culture-trains-candidates-campaign-univer...
1•beardyw•23m ago•2 comments

Show HN: Charl – ML language with native tensors and autograd

https://charlbase.org/
2•MitchelNovoa•25m ago•0 comments

We got a $60k tax penalty for a zero-revenue side project

6•lukaslukas•26m ago•3 comments

The Election That Isn't

https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2025-10-20/Special_report
1•altilunium•28m ago•1 comments

Are Local Nodes the Future?

https://twitter.com/davidmrmc/status/1987867974229950886
1•realtorender•28m ago•1 comments

Refashion: Reconfigurable Garments via Modular Design

https://arxiv.org/abs/2510.11941
1•PaulHoule•31m ago•0 comments

Book Notes on Logic and the Philosophy of Mathematics

https://www.logicmatters.net/tyl/booknotes/
1•perihelions•32m ago•0 comments

Israeli soldiers speak out on killings of Gaza civilians

https://www.theguardian.com/world/2025/nov/10/israeli-soldiers-breaking-ranks-gaza-civilians-huma...
2•NomDePlum•33m ago•0 comments

Android security bulletin: November 2025 patch fixes zero-click RCE

https://source.android.com/docs/security/bulletin/2025-11-01
1•todsacerdoti•34m ago•0 comments

AI Minus Vagina

https://taylor.town/ai-minus-vagina
1•surprisetalk•35m ago•3 comments

Lahaina Noon

https://www.futilitycloset.com/2025/10/09/lahaina-noon/
1•surprisetalk•36m ago•0 comments

Is the AI industry a bubble? Of course it is, but what kind?

https://betterthanrandom.substack.com/p/is-the-ai-industry-a-bubble
1•spking•36m ago•0 comments

Meta's flirty AI chatbot invited a retiree to New York

3•1vuio0pswjnm7•36m ago•1 comments

I* built an arcade game. Things went wrong

https://hughevans.dev/i-built-an-arcade-game-things-went-wrong/
2•HughEvansDev•38m ago•0 comments

Honda: 2 years of ml vs 1 month of prompting - heres what we learned

https://www.levs.fyi/blog/2-years-of-ml-vs-1-month-of-prompting/
1•Ostatnigrosh•39m ago•0 comments