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/

AI Rebounding: Why Companies Are Rehiring the Workers They Cut

https://smarterarticles.co.uk/ai-rebounding-why-companies-are-rehiring-the-workers-they-cut
1•dxs•44s ago•0 comments

What Happened in Fall 2026: AI and P vs. NP

https://cacm.acm.org/blogcacm/what-happened-in-fall-2026-ai-and-p-vs-np
1•abelanger•52s ago•0 comments

AI Privacy Cloak

https://github.com/miloshke/ai-privacy-cloak
1•miloshke•1m ago•0 comments

Scrutinizing R/WritingWithAI, and Having Mixed Feelings About It

https://trialandfailure.net/scrutinizing-rwritingwithai-and-having-mixed-feelings-about-it/
1•speckx•2m ago•0 comments

Show HN: Enjoy the Silence, a software factory on a box that isn't yours

https://dmytroportianka.github.io/enjoy-the-silence/
1•DmytroPortianka•3m ago•0 comments

US releases files on suspected Bigfoot sightings in Montana and Oregon

https://www.theguardian.com/us-news/2026/nov/22/bigfoot-sighting-report-released-montana-oregon-f...
1•n1b0m•5m ago•0 comments

Assume People Are Not Interested in Your Blog Post

https://danielsada.tech/blog/assume-people-are-not-interested-in-your-blog-post/
3•dshacker•9m ago•0 comments

Fast Code Review

https://twitter.com/aidenybai/status/2124550726882136542
1•hn-aarvin•12m ago•0 comments

First Java AI Agent/Harness capable of mutating its own bytecode at runtime

https://asi.anahata.uno/ifptoasi/greenpaper.html
1•anahata•13m ago•0 comments

Startups call on Commission to salvage or scrap EU Inc proposal

https://www.politico.eu/article/eu-startup-lobby-groups-call-upon-commission-to-withdraw-eu-inc-p...
1•BerislavLopac•16m ago•0 comments

Show HN: Convert bank statements to QuickBooks or Xero files in the browser

https://statement-converter-c41.pages.dev/
1•tyrxargaar•22m ago•0 comments

Show HN: Eleria OS – A Debian 13 Based Distro with an HTML Desktop Shell

2•levithebuilder•23m ago•0 comments

From General-Purpose Software to Evolving Environments for Generating Tools

https://medium.com/@smoking2man/from-general-purpose-software-to-evolving-environments-for-genera...
1•Aldus551•26m ago•0 comments

Paris Manifesto – Against the international oligarchy

https://parismanifesto.world/en/
2•sillyfluke•28m ago•1 comments

The lottery of career success: or why you may want to bribe OpenAI

https://notnottalmud.substack.com/p/the-lottery-of-career-success-or
2•mattm•29m ago•0 comments

Weirdly accelerating space rock keeps puzzling astronomers

https://www.scientificamerican.com/article/weirdly-accelerating-space-rock-keeps-puzzling-astrono...
1•wslh•30m ago•0 comments

What Happened to Silicon Valley?

https://www.oreilly.com/radar/what-happened-to-silicon-valley/
7•greenyouse•31m ago•0 comments

How to safely work with business data in Claude

https://roow.work/blog/claude-and-your-business-data
1•arvindram03•31m ago•0 comments

"Prosaic AI alignment": 10 years later

https://www.lesswrong.com/posts/pfZWd2dLy7wRaDKYa/prosaic-ai-alignment-10-years-later
1•paulpauper•31m ago•0 comments

Metro: The Documentary on Microsoft's Boldest Design

https://www.youtube.com/watch?v=MYyyhAhHgT8
1•alexcos•31m ago•0 comments

Riemann at home – Validate the Riemann hypothesis lean proof on your computer

https://riemann-at-home.github.io/riemann-at-home/
2•tito•35m ago•0 comments

Bill Joy: Why the Future Doesn't Need Us (2000)

https://www.wired.com/2000/04/joy-2/
1•marvel_boy•35m ago•0 comments

Rated ( Ratedltd1) – TikTok [video]

https://www.tiktok.com/@ratedltd1/video/7711067267986902290
1•erezdomb•36m ago•0 comments

Show HN: A simple decision layer for coding agents

https://smarchone.github.io/signals/
1•smarch27•36m ago•0 comments

Show HN: Lanlan Jam – a multiplayer DJ booth in the browser

https://jam.lanlan.site/
1•wchest•36m ago•0 comments

Microsoft admits some emails bounced during Outlook outage, reveals new failures

https://www.neowin.net/news/microsoft-admits-some-emails-bounced-during-global-outlook-outage-rev...
3•DASD•38m ago•0 comments

HotCofy: Token-Based Restaurant POS

https://hotcofy.com/
1•upantaz•40m ago•0 comments

C64 ultimate firmware 1.2.1 released

https://downloads.commodore-international.com/documentation/changelog-1.2.1.txt
1•mikerg87•40m ago•0 comments

Canada recommits to federal funding for news

https://www.niemanlab.org/2026/11/a-government-that-gets-it-canada-recommits-to-federal-funding-f...
71•DeepLogin•40m ago•48 comments

A Rust simulation engine for discrete-time controllers

https://www.modeloop.app/blog/porting-the-simulation-engine-into-rust
1•lucamark•40m ago•0 comments