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/

Postgres Calculations and the Ambiguity of Null

https://www.crunchydata.com/blog/postgres-calculations-and-the-ambiguity-of-null
1•birdculture•5m ago•0 comments

Against Proxy Optimization

https://doi.org/10.1111/phpr.70138
1•2grue•6m ago•0 comments

Gitmir just beat all the competition

https://gitmir.com/lab
1•venediktov•8m ago•1 comments

Pulitzer Prize for General Nonfiction

https://en.wikipedia.org/wiki/Pulitzer_Prize_for_General_Nonfiction
1•chistev•9m ago•1 comments

JPMorgan curbed lending to Jane Street as trading firm muscled into bond market

https://www.ft.com/content/07e849ac-ea87-4227-81d4-7f18b0d7d473
1•JumpCrisscross•12m ago•0 comments

Workplace surveillance is on the rise, spurred by AI

https://knowablemagazine.org/content/article/society/2026/surveillance-at-work-is-increasing
1•knowablemag•12m ago•0 comments

Show HN: A MT7921U USB Driver for macOS Network Sniffing

https://github.com/Network-Weather/mt76-usb-macos
2•dweekly•14m ago•0 comments

Ask HN: How to Trace Website Ownership

1•nsinghal12•22m ago•0 comments

Why Software Developers Are Highly Unrepresentative of Broader AI Use

https://paulkedrosky.com/why-software-developers-are-hiunrepresentative-of-broader-ai-use/
2•thoughtpeddler•23m ago•0 comments

Srest – A TUI for the Slurm REST API Built in Go

https://srest.scszero.com/docs.html
1•SergioZ3R0•26m ago•0 comments

Show HN: Slop University

https://slop.university/
2•benswift•30m ago•0 comments

How to Predict Uncertainty

https://francesco215.github.io/autoregressive_diffusion/uncertainty.html
1•Sacco215•30m ago•0 comments

ChatGPT for Healthcare

https://openai.com/index/chatgpt-connects-health-records-and-healthcare-sources/
1•Murfalo•31m ago•0 comments

Habab Discord Quest Extension – Open-source browser extension

https://github.com/xloqia03/Habab-Discord-Quest-Extension
1•xloqia03•32m ago•0 comments

Uberexits Nigeria switching of service mid rides

https://twitter.com/eboigbeanita/status/2095196885430546878
1•OoTheNigerian•32m ago•1 comments

Show HN: CoOS – desktop app where an agent builds your CRM/ERP as local plugins

https://pirol.ai/
1•grischajacobs•33m ago•0 comments

Did Vibe Coders win? Is this our end?

1•s_u_d_o•33m ago•0 comments

Ask HN: Are coding agents too cautious because they estimate work in human time?

1•gabosarmiento•34m ago•0 comments

'Insane data': Duke professor Dan Ariely accused of additional research fraud

https://www.dukechronicle.com/article/duke-university-professor-dan-ariely-accused-of-additional-...
3•aanet•35m ago•1 comments

ArsDigita University: 25 Years Later

https://medium.com/@tomhickerson/arsdigita-university-25-years-later-152d135441c3
1•so-cal-schemer•40m ago•1 comments

Omarchy Histerya

2•ddfx00•41m ago•1 comments

METR Report on OpenAI / Hugging Face Hacking Incident

https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/#core-takeaways-about...
35•stikit•43m ago•13 comments

Justice Dept. Sides with OpenAI in New York Times Copyright Suit

https://www.nytimes.com/2026/09/02/technology/justice-department-openai-copyright-suit.html
10•sbulaev•44m ago•0 comments

Chapter 10: Sites That Are Programs (1998)

https://philip.greenspun.com/panda/server-programming
1•so-cal-schemer•46m ago•1 comments

FDA Authorizes First-of-Its-Kind Robotic Blood Draw Device

https://www.fda.gov/news-events/press-announcements/fda-authorizes-first-its-kind-robotic-blood-d...
1•Ariarule•48m ago•0 comments

M6 Mac Mini vs. M1 Mac Mini: original Apple Silicon versus the new

https://appleinsider.com/inside/mac-mini/vs/m6-mac-mini-vs-m1-mac-mini-five-year-gap-hardware-com...
4•theanonymousone•48m ago•0 comments

AI-Memory 2.0 – The Best Memory System for Agents and Teams

https://akitaonrails.com/en/2026/09/02/ai-memory-2-0-best-memory-system-for-agents-and-teams/
1•taiar•48m ago•0 comments

Ontologies catch untrustworthy LLM claims

https://antithetical-labs.com/blog/the-judge-liked-it-better/
1•aals777•50m ago•0 comments

Muse Spark 1.3 Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/muse-spark-1-3-xhigh
1•theanonymousone•51m ago•0 comments

The greenest building is the one still standing after a disaster

https://theconversation.com/the-greenest-building-is-the-one-still-standing-after-a-disaster-290313
2•hn_acker•51m ago•0 comments