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

Comments

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

Joel Spolsky: Painless Software Schedules (2000)

https://www.joelonsoftware.com/2000/03/29/painless-software-schedules/
1•MonkeyClub•4m ago•0 comments

KTH Innovation Award 2025: Anton Osika and Fabian Hedin

https://www.kth.se/en/om/nyheter/centrala-nyheter/anton-osika-och-fabian-hedin-kth-innovation-awa...
1•teleforce•4m ago•0 comments

TSMC Risk

https://stratechery.com/2026/tsmc-risk/
1•swolpers•5m ago•0 comments

Ports and Adapters: death by a thousand ports

https://world.hey.com/apetrov/ports-adapters-death-by-a-thousand-ports-8b42afcf
1•apetrov•9m ago•0 comments

Show HN: Only 1 LLM can fly a drone

https://github.com/kxzk/snapbench
2•beigebrucewayne•11m ago•0 comments

ESI Language Specification 1.0

https://www.w3.org/TR/esi-lang/
1•captn3m0•12m ago•0 comments

A study of personality convergence across language models

https://avikrishna.substack.com/p/eliciting-frontier-model-character
1•tjsk•13m ago•0 comments

Copilot committed my repo secrets into AGENTS.md

https://bsky.app/profile/benfoxall.bsky.social/post/3mdcumabg6s2c
2•benjaminbenben•13m ago•1 comments

Transformers V5 is out!

https://github.com/huggingface/transformers/releases/tag/v5.0.0
3•kashifr•13m ago•0 comments

Clawdbot: Personal AI Assistant

https://clawd.bot/
2•puppion•16m ago•0 comments

Show HN: A Neovim plugin to add comments for coding agents

https://github.com/czheo/anno.nvim
1•czheo•19m ago•0 comments

Zero-Knowledge Encrypted Notebook

1•thesecurenote•19m ago•0 comments

Trump Administration Plans to Write Regulations Using Artificial Intelligence

https://www.propublica.org/article/trump-artificial-intelligence-google-gemini-transportation-reg...
2•beardyw•21m ago•0 comments

Show HN: An interactive timeline of computer viruses, worms, and digital threats

https://github.com/rsc-dev/malware-museum.com
1•rsc-dev•22m ago•0 comments

Tell HN: Aden, A YC company, is growth hacking by luring devs with paid work

3•theblazehen•23m ago•0 comments

The Private Equity Roll-Up of HVAC

https://talk24.ai/blog/hvac-private-equity-consolidation
1•atreeleaf•23m ago•0 comments

Building a Sovereign Portfolio Risk Calculator: Why We Ditched the Back End

https://www.pocketportfolio.app/blog
1•pocketportfolio•24m ago•0 comments

FOSDEM 2026 – The Servo project and its impact on the web platform ecosystem [video]

https://fosdem.org/2026/schedule/event/LXFKS9-servo-project-impact/
1•robin_reala•33m ago•0 comments

Robin Williams tickles Coco the monkey

https://www.koko.org/emails/when_robin_met_koko_video/
1•irthomasthomas•34m ago•0 comments

World's Biggest TikToker from Senegal sells company in $900M deal

https://africa.businessinsider.com/local/markets/worlds-biggest-tiktoker-from-senegal-sells-compa...
3•thunderbong•36m ago•0 comments

Free-Coloring-Pages-Generator

https://www.genstory.app/story-template/free-coloring-pages-generator
1•RyanMu•39m ago•1 comments

Ellen MacArthur Foundation Circularity Indicators Flawed?

1•_zero_echo_•41m ago•0 comments

Instructions in papers can manipulate AI reviewers 78-86% of the time

https://www.researchsquare.com/article/rs-8432945
2•evilscript•43m ago•2 comments

Browserbase vs. Kernel: Building a Google Flights Scraper Twice

https://medium.com/tech-stackups/browserbase-vs-kernel-cloud-browser-automation-for-ai-agents-b10...
1•sixhobbits•43m ago•0 comments

Built in 1776, the same year as the US Declaration of Independence

https://en.wikipedia.org/wiki/Hans_Bronsart_von_Schellendorff
2•MargaretBauer•44m ago•4 comments

Ask HN: Easiest way to run Claude Code on my MacBook using my iPhone, remotely?

1•rishabhpoddar•45m ago•1 comments

Show HN: AffordWhere – Affordability by City

https://affordwhere.com
1•justconvert•48m ago•0 comments

Show HN: Rekko – Stripe app to recover failed subscription payments

https://rekko.io
1•AlexRST•49m ago•0 comments

Hard Times in the Delta as Farmers Consider Letting Crops Rot

https://www.nytimes.com/2026/01/25/business/mississippi-delta-farmers-rice-prices.html
1•mitchbob•49m ago•1 comments

Ask HN: How are you handling Gmail ending POP3 and Gmailify?

2•moshetanzer•50m ago•0 comments