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/

Mochallama

https://deemwar-products.github.io/mochallama/
1•deemwar•18s ago•0 comments

Mack.ns.cloudflare.com

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

Bootimus – A Self-Contained PXE and HTTP Boot Server

https://bootimus.com
1•car•1m ago•0 comments

We Ran the Numbers. Remote Work Is Bad for Us

https://www.nytimes.com/2026/06/17/opinion/remote-work-depression.html
1•Anon84•2m ago•0 comments

Apple unifies device management in devicectl: Impact on iOS test automation and

https://bitrise.io/blog/post/wwdc-2026-device-hub-and-what-it-means-for-ci-cd
1•birdculture•5m ago•0 comments

CSSQuake

https://cssquake.com/
2•msalsas•7m ago•0 comments

Enthusiastic Fear

https://patent.dev/enthusiastic-fear/
2•funktionslust•13m ago•0 comments

The Classic Movie That Was Nearly Destroyed by a Single Line of Code

https://www.wsj.com/business/media/toy-story-5-saved-pixar-78e29161
1•impish9208•14m ago•1 comments

UK's top data and AI regulator quits after 'inappropriate' humour

https://www.bbc.co.uk/news/articles/c0eyq7rnn22o
2•nephihaha•16m ago•0 comments

A Web-Scale Data Engine for Video-to-Action Robot Learning

https://huggingface.co/spaces/Rice-RobotPI-Lab/EgoInfinity
1•jacobedawson•16m ago•0 comments

Lakehouse//RT

https://www.databricks.com/blog/introducing-lakehousert-real-time-performance-unified-lakehouse
1•tosh•19m ago•0 comments

I have not written a line of code in five months

https://blog.grod.es/i-have-not-written-a-line-of-code-in-five-months
2•grodes•21m ago•0 comments

BudgetZen

1•ByrsaTeam•22m ago•0 comments

Can 'We the People' Survive the AI Revolution?

https://www.wsj.com/opinion/can-we-the-people-survive-the-ai-revolution-f9154ba1
1•bookofjoe•24m ago•1 comments

Open Source for IBM Z and LinuxONE

https://community.ibm.com/community/user/blogs/elizabeth-k-joseph1/2026/06/18/linuxone-open-sourc...
1•ncruces•24m ago•0 comments

Rethinking vulnerability management in the age of AI and CI/CD

https://blog.apnic.net/2026/06/19/rethinking-vulnerability-management-in-the-age-of-ai-and-ci-cd/
2•jruohonen•31m ago•1 comments

I Was Too Stoned to Configure Nginx Auth and Now My 0Days Are Touring the World

https://twitter.com/YogSoth0/status/2068158039744507993
1•markus_zhang•31m ago•0 comments

Pure Go GUI toolkit built on GoGPU

https://github.com/gogpu/ui
2•porjo•34m ago•0 comments

Pake: Turn any webpage into a desktop app with one command

https://github.com/tw93/Pake
1•thunderbong•36m ago•0 comments

GoPeek – Just hover. No new tabs.

https://microsoftedge.microsoft.com/addons/detail/gopeek/ffaeanmhghmohbponokefmbhfkkomnmk
1•sheelagay•40m ago•3 comments

Terminal and Panel Reorganization in RexIDE

https://www.youtube.com/watch?v=EgvDd6_kidQ
1•tomerbd•46m ago•0 comments

Install F-Droid apps over USB straight from the browser

https://droidstore.megahard.pro/
1•bboygravity•46m ago•1 comments

New studies suggest consciousness exists in organisms without brains

https://iai.tv/articles/new-studies-suggest-consciousness-exists-in-organisms-without-brains-auid...
2•XzetaU8•49m ago•1 comments

I built a WordPress plugin for simple content statistics and stylometry markers

https://github.com/alexboia/ABNET-PostStats
1•alexandruboia•50m ago•0 comments

Iranian Guards' business empire to win big if U.S. sanctions lifted

https://www.reuters.com/world/middle-east/iranian-guards-business-empire-win-big-if-us-sanctions-...
2•JumpCrisscross•50m ago•1 comments

When a Robot Kicks a Child

https://www.law.kuleuven.be/citip/blog/when-a-robot-kicks-a-child-what-humanoid-ai-can-teach-us-a...
1•jruohonen•53m ago•1 comments

UK unveils prototype missiles for Ukraine with no US components

https://www.ft.com/content/78d880ee-f5cd-4f58-ba8d-da8f2193d95a
2•JumpCrisscross•53m ago•0 comments

A Chin-Stroking Mystery: Why Are Humans the Only Animals with Chins?

https://www.smithsonianmag.com/smart-news/chin-stroking-mystery-why-are-humans-ony-animals-with-c...
1•thunderbong•53m ago•0 comments

VLMs cannot automate construction takeoff. The data is not in the drawings

https://andrewngo.dev/writing/the-limits-of-takeoff-automation
1•andrewngo•58m ago•0 comments

Updated UI icons on Wikimedia Foundation sites (including Wikipedia)

https://phabricator.wikimedia.org/T399175
1•exploraz•1h ago•1 comments