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/

Show HN: 52% of EU e-commerce sites still have a critical accessibility barrier

https://accesslumens.com/research/state-of-eu-ecommerce-accessibility-2026
1•a11ymaster•25s ago•0 comments

The EU AI Act is an engineering deadline, not a legal one

https://conformityengineering.com/playbook/
1•stevalsoto•1m ago•0 comments

PDF: The Most Trustworthy Hallucination in the Stack

https://pymupdf.io/blog/pdf-the-most-trustworthy-hallucination-in-the-stack
1•akaybk•3m ago•0 comments

NIH's All of Us Research Program is the largest integrated genomics database

https://www.nih.gov/news-events/news-releases/nihs-all-us-research-program-now-largest-integrated...
1•gmays•3m ago•0 comments

Show HN: Loopers – Atomic pre-call budget checks for LLMs using Redis Lua

https://github.com/CURSED-ME/loopers-oss
1•varad-khoriya•4m ago•0 comments

Show HN: We gave our website-audit tool an MCP server so agents can fix issues

https://repolog.io/
1•petersas•4m ago•0 comments

Show HN: Excogni – open, pseudonymous cognitive measurement in the making

https://xcgni.com/
1•brna-2•5m ago•1 comments

The Conservationist Who Turned 40 Terabytes of Public Data into a Video Game

https://blog.exe.dev/meet-the-conservationist-who-turned-40-terabytes-of-government-data-into-a-v...
2•bryanmikaelian•6m ago•0 comments

The analysts are compromised

https://www.profgmedia.com/p/the-analysts-are-compromised
1•dchi04•6m ago•0 comments

Show HN: RavenGate – LLM gateway that redacts PII across SSE chunk boundaries

https://gate.ravenlabs.studio/
2•charltonraven•7m ago•0 comments

Show HN: Run SAM only when your tracker is uncertain – #1 on SportsMOT

https://www.holma.io/blog/posts/selective-mask-propagation
2•lapuerta•7m ago•0 comments

Show HN: Boardown – A local Markdown-based Kanban board inside VS Code

https://github.com/grinev/boardown
1•greenrus•7m ago•0 comments

Show HN: I can't seem to text properly on an iPhone, so I built my own keyboard

2•tbensky•9m ago•1 comments

5D Memory Crystal

https://www.5dmemorycrystal.com
1•csomar•10m ago•0 comments

Poet as Legislator

https://en.wikipedia.org/wiki/Poet_as_legislator
1•tosh•12m ago•0 comments

peg-express is a parser generator for TypeScript

https://github.com/katsumiok/peg-express
1•gjvc•12m ago•0 comments

Samsung will delete your health data if you don't let them use it to train AI

https://www.neowin.net/news/samsung-will-delete-your-health-data-if-you-dont-let-them-use-it-to-t...
3•rpgbr•12m ago•2 comments

Google's Demis Hassabis says it's time for a global AI watchdog led by the US

https://www.theverge.com/tech/965270/google-deepmind-demis-hassabis-global-ai-watchdog
1•andsoitis•13m ago•0 comments

Demis Hassibis: A Framework for Frontier AI and the Dawning of a New Age

https://x.com/demishassabis/article/2076957440109625718
1•andsoitis•14m ago•0 comments

Germany wants rental e-scooter companies to pay for accidents

https://electrek.co/2026/07/13/germany-wants-rental-e-scooter-companies-to-pay-for-accidents/
1•gnabgib•14m ago•0 comments

Sony Nerfs Videogame Ownership

https://www.eff.org/deeplinks/2026/07/sony-nerfs-videogame-ownership
2•Brajeshwar•14m ago•1 comments

I couldn't pay for DeepSeek V4 with my card. So I built a proxy

https://api-hub.cc/blog/
2•zftnb666•15m ago•0 comments

Show HN: CrowdMind, Free app for building AI personas and testing stimuli

https://github.com/Brokenwatch24/crowdmind
1•jjaramillor•15m ago•0 comments

Demis Hassabis has a plan to harness AI safely

https://www.economist.com/business/2026/07/14/demis-hassabis-has-a-plan-to-harness-ai-safely
1•andsoitis•15m ago•0 comments

The Rise and Fall of Commercial Smalltalk (2020)

https://wirfs-brock.com/allen/posts/914
2•downbad_•15m ago•1 comments

Making network topology readable with C4 and graph theory

https://scanopy.net/blog/making-network-topology-readable
2•mayanayza•16m ago•1 comments

A thinking thing that is no one

https://baronca.substack.com/p/a-thinking-thing-that-is-no-one
1•Anon84•18m ago•0 comments

Telegram's t.me domain name is back

https://de.godaddy.com/whois/results.aspx?domain=t.me
2•_roj•18m ago•1 comments

Show HN: PixlPDF – e-signatures where the server only stores encrypted blobs

https://pixlpdf.com
1•pixlpdf•19m ago•0 comments

Two sizes fit most: Postgres and ClickHouse

https://clickhouse.com/blog/ai-best-of-breed-data-stack
1•saisrirampur•19m ago•0 comments