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/

XReal Aura – Android XR Glasses

https://www.xreal.com/us/aura
1•thadt•2m ago•0 comments

Why headlights seem more blinding than ever

https://www.washingtonpost.com/transportation/2026/10/28/how-nighttime-driving-became-an-exercise...
1•bookofjoe•3m ago•1 comments

Errors in the Research of Emmanuel Saez and Gabriel Zucman

https://saez-zucman-audit-replication.vercel.app/
1•paulpauper•5m ago•0 comments

LectureInk: Open-source study notes from video tutorials

https://github.com/SabitaKumariDev/LectureInk-V1
1•sabitak•6m ago•0 comments

How to Outrun the AI Hackers

https://www.thefp.com/p/tyler-cowen-how-to-outrun-the-ai
1•paulpauper•6m ago•0 comments

Inequality in Equal Land

https://marginalrevolution.com/marginalrevolution/2026/10/inequality-in-equal-land.html
1•paulpauper•6m ago•0 comments

Octoverse: Commits, pushes, reach new highs in 2026

https://github.blog/news-insights/octoverse/octoverse-commits-pushes-reach-new-highs-in-2026-as-d...
1•colewilson•8m ago•0 comments

In a Setback to VMware, Tesco Is Looking to Migrate to Proxmox

https://itsfoss.com/news/tesco-vmware-exit/
1•abdelhousni•9m ago•0 comments

When AI Does the Work, What Will Humans Do?

https://project507.substack.com/p/when-ai-does-the-work-what-will-humans
1•massigenta•10m ago•0 comments

DOJ is inquiring about Nvidia's purchase of Hugging Face

https://www.reuters.com/world/us-doj-is-inquiring-about-nvidias-purchase-hugging-face-sources-say...
1•TechTechTech•11m ago•0 comments

The case of the 9 bit AES key

https://v12.sh/blog/the-case-of-the-9bit-aes-key
1•ledoge•11m ago•1 comments

AI Startups Are Getting an Inch and Taking a Mile

https://tedium.co/2026/10/27/ai-startups-sketchy-behavior/
1•aray07•11m ago•0 comments

Ask HN: Why is pagination gone on "Ask HN", and showing only 19 items?

2•bigwheels•12m ago•0 comments

Jacquard Machine

https://en.wikipedia.org/wiki/Jacquard_machine
1•derwiki•12m ago•0 comments

Latest Drop by DDoS Contains Contact Info for 40k DHS Employees

https://www.techdirt.com/2026/10/28/latest-drop-by-distributed-denial-of-secrets-ddos-contains-co...
1•DeepLogin•14m ago•0 comments

Cubecursor

https://cubecursor.shop
1•mythicalsafw•15m ago•0 comments

How, and Why, We're Adding A.I. Tools to NYT Cooking

https://www.nytimes.com/2026/10/23/insider/cooking-recipes-ai.html
2•max-ch•15m ago•1 comments

Leak website releases data on DHS employees

https://www.reuters.com/legal/government/leak-website-releases-data-tens-thousands-dhs-employees-...
3•wondersky•16m ago•0 comments

Show HN: I built a tool that finds reliability bugs in your code

1•aray07•17m ago•0 comments

Apple Touch

https://www.pcmag.com/explainers/apple-touch-screen-macbook-pro-2899-monthly-cost-with-apple-upgrade
1•skor•22m ago•0 comments

Climate Change Stopped the Next Ice Age

https://lamont.columbia.edu/news/climate-change-stopped-next-ice-age
1•geox•25m ago•0 comments

Goto Considered Sick (for error handling in C)

https://thestateofinahaze.net/blog/c-goto-considered-totally-sick/
1•majorchord•27m ago•1 comments

Synthetic survey respondents from real census data, with a calibration score

https://synthetic-audience.noniner.io
1•fredxhansson•28m ago•0 comments

Show HN: Enframe – Drop-in sidecar that wraps any OpenAPI spec to an MCP server

https://github.com/erwinkramer/enframe
1•r3versii•28m ago•0 comments

Ask HN: Advise on monetization model for my freemium app wanted

1•neurodiv_dennis•29m ago•0 comments

Getting good at AI takes time and practice

https://www.seangoedecke.com/getting-good-at-ai-takes-time-and-practice/
2•tomwphillips•31m ago•1 comments

Ask HN: Alternative to Tldraw Draw Fast?

2•outlore•33m ago•0 comments

lever: Feedback Loops for Coding Agents

https://github.com/github/lever
1•gfortaine•33m ago•0 comments

Hokum: Notifications for Wayland

https://hokum.app/
1•droidjj•35m ago•0 comments

The world's largest ad company had a bad quarter selling ads

https://www.wsj.com/tech/ai/alphabet-googl-q3-earnings-report-2026-stock-fa41392d
4•bigwheels•36m ago•0 comments