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/

Turning robot video into training-ready data

https://www.eventual.ai/blog/announcing-daft-physical-ai
1•DISCURSIVE•5m ago•0 comments

Show HN: AI Secretary – Stop checking your phone "just in case"

https://github.com/mathigatti/telegram-ai-secretary
1•mathigatti•9m ago•0 comments

Show HN: Yaml2json.com, YAML/JSON converter that runs in the browser

https://yaml2json.com
1•zacattack8•9m ago•0 comments

Generative Bionics launches Gene.01 ahead of shipyard welding trials

https://runtimewire.com/article/generative-bionics-gene01-tactile-humanoid-shipyard-trials
1•ryanmerket•10m ago•0 comments

FDE Interview Questions

https://superml.org/tutorials/fde-interview-questions
2•bps1418•11m ago•0 comments

With the Help of Codex: A Reproducible Proof Against the Jacobian Conjecture

https://blog.clidey.com/a-reproducible-proof-against-the-jacobian-conjecture/
2•hemangkandwal•12m ago•0 comments

Agent Search Engine – an independent, hand-audited index of 247 AI agents

https://agentsearchengine.app
1•ASE-APP•14m ago•0 comments

Flathub's AI slop ban looks like it was the right call

https://www.omgubuntu.co.uk/2026/07/flathub-ai-slop-ban-data
2•csmantle•15m ago•0 comments

Huawei Just Built an Impossible Chip [video]

https://www.youtube.com/watch?v=8ekndZwyOzo
1•binyu•18m ago•0 comments

Show HN: Ekko – PQC encryption inside of your keyboard

https://useekko.app/
3•kvasilev•20m ago•0 comments

A Meta-Epistemological Reason for Rejecting AI-Written Philosophy

https://dailynous.com/2026/07/16/a-meta-epistemological-reason-for-rejecting-ai-written-philosophy/
1•zetamax•21m ago•0 comments

Flock Credibility Lost as It Repeatedly Lies to City Councils, Police, & Public

https://www.aclu.org/news/privacy-technology/tracking-alpr-cameras/flock-safety-credibility-lost-...
3•StatsAreFun•26m ago•0 comments

The surprising benefits of red light

https://www.economist.com/science-and-technology/2026/07/20/the-surprising-benefits-of-red-light
1•andsoitis•30m ago•0 comments

Quickly rewrite Git repository history

https://github.com/newren/git-filter-repo
2•modinfo•31m ago•0 comments

The Networking Wars: How Microsoft Crushed Novell

https://www.youtube.com/watch?v=5GAYaBU1SLQ
2•cable2600•32m ago•0 comments

A quick note on OmniWM, open source, and why giving credit matters

https://github.com/BarutSRB/OmniWM/discussions/497
2•mmcclure•37m ago•0 comments

Best Coding Fonts for Developers in 2026

https://www.jstools.space/blog/best-coding-fonts/
3•javatuts•37m ago•2 comments

Datasette Dashboards

https://romain-clement.net/projects/datasette-dashboards/
2•ankitg12•38m ago•0 comments

The Graph Was the Cheap Part

https://cameronwestland.com/the-graph-was-the-cheap-part/
1•camwest•39m ago•0 comments

OpenCircuitX

https://github.com/openlab-x/OpenCircuitX
2•firetesterlab•40m ago•0 comments

OpenAI Says Model Broke Out of Sandbox

https://twitter.com/kimmonismus/status/2079276434586210745
3•derangedHorse•41m ago•0 comments

$100 million for open source: A milestone built by the community

https://github.blog/open-source/maintainers/100-million-for-open-source-a-milestone-built-by-the-...
1•chmaynard•43m ago•0 comments

The road to epsilon-zero: Nim always ends, even with infinite ordinals

https://blog.plover.com/math/ordinals/02-wellfoundedness.html
2•pavel_lishin•49m ago•0 comments

MAGA Media Lap Up Trump's Election-Interference Exaggerations

https://www.nationalreview.com/news/maga-media-lap-up-trumps-election-interference-exaggerations/
1•petethomas•50m ago•0 comments

How to manage AI investments in the agentic era

https://openai.com/index/managing-ai-investments-in-agentic-era/
1•gmays•50m ago•0 comments

Show HN: Vidmoat – a video editing pipeline any AI agent can operate

https://www.vidmoat.com/
2•fredabila•50m ago•0 comments

Jacobian conjecture was proven for 3D, Math seems to be distraction however

https://abhishek-shankar.com/posts/the-zero-discount-claim
1•catstyler•52m ago•0 comments

Show HN: PounceDomains – Domain discovery and sniping for Namecheap Marketplace

https://pouncedomains.com
1•DotSauce•53m ago•0 comments

Linux Now Runs on the Atari Jaguar, a 1993 Console with Just 2 MB of RAM

https://linuxiac.com/linux-now-runs-on-the-atari-jaguar-a-1993-console-with-just-2-mb-of-ram/
3•cable2600•54m ago•0 comments

The road to epsilon-zero: ordinals as Nim-heaps

https://blog.plover.com/math/ordinals/01-nim.html
1•pavel_lishin•57m ago•0 comments