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/

Show HN: MicroReel – Play YouTube Shorts while waiting for LLM responses

https://microreel-beta.vercel.app/
1•danny427•1m ago•0 comments

Trump Crashes Out over Nvidia CEO Jensen Huang's Disastrous Hearing

https://newrepublic.com/post/218573/donald-trump-nvidia-ceo-jensen-huang-disastrous-hearing
1•CharlesW•1m ago•0 comments

Sid's Record Collection

https://records.sidhyatikku.com
1•sidhyatikku•2m ago•1 comments

NESDev Compo '26

https://itch.io/jam/nesdev-compo-2026
1•birdculture•2m ago•0 comments

Ask HN: Has AI changed what your team is willing to self-host at work?

1•guywithnoh•2m ago•0 comments

Show HN: Hup – A persistent terminal multiplexer for Mac & iOS

https://greaterexpanse.com/hup/
1•polytap•3m ago•0 comments

Ready to find a new life purpose? Here's a tool to map your next chapter

https://www.npr.org/2026/12/03/nx-s1-5996690/life-purpose-find-goals-midlife
1•blinding-streak•5m ago•0 comments

Laravel for Airspace

https://www.airfranceklm.com/en/newsroom/air-france-klm-opens-new-era-and-becomes-aravel-group
1•defenestration•6m ago•0 comments

Remittance

https://en.wikipedia.org/wiki/Remittance
1•tosh•7m ago•0 comments

Is AI Positioning for a Bailout?

https://oshea00.github.io/posts/ai-bailout-positioning/
2•r00tanon•8m ago•0 comments

'Just Ridiculous': A Famed Philosopher Takes on AI Consciousness

https://www.wired.com/story/just-ridiculous-a-famed-philosopher-takes-on-ai-consciousness/
2•danielam•9m ago•0 comments

Arc Makes Business a Science

https://www.beaconholdings.com/research/making-business-a-science?trk=feed-detail_comments-list_c...
1•rafaelc•9m ago•0 comments

Huang Says He Had Security Clearance but Did Not Report His Affair

https://www.nytimes.com/2026/12/03/business/jensen-huang-security-clearance-testimony.html
3•cdrnsf•12m ago•0 comments

Programming in English

https://cymatics.art
1•calebm•12m ago•1 comments

SpaceX's 1 TW/yr Terafab goal vs. 1.7 GW of installed nameplate compute

https://theorbiteconomy.com/company/spacex
2•theorbiteconomy•15m ago•0 comments

Frontier AI has found a classical attack on elliptic curve discrete log

https://twitter.com/drakefjustin/status/2128545577956782355
3•jp_rider•15m ago•1 comments

Show HN: Spectrum – A small, fast audio player for Windows

https://float64co.github.io/spectrum/
1•LukeB42•16m ago•0 comments

I, for one, welcome the softwarification of math

https://www.approachwithalacrity.com/p/i-for-one-welcome-the-softwarification
2•bblcla•19m ago•0 comments

Show HN: Try to pull one record out of our confidential-computing job platform

https://kiersys.com/desafio-k-shield.html
1•lionelcarrerasn•19m ago•0 comments

US weekly jobless claims drop to more than 57-year low

https://www.reuters.com/world/us/us-weekly-jobless-claims-decline-further-2026-12-03/
2•frank_clover•20m ago•1 comments

I'm not convinced by Rust in 2026

https://blog.arkency.com/im-not-convinced-by-rust-in-2026/
2•andrzejkrzywda•21m ago•0 comments

Port Authority Wayfinding Manual

https://wayfinding.panynj.gov/
1•imbobbytables•24m ago•0 comments

Google Engineers Exploring "Extmem" for Linux NUMA-Aware Boot Memory Carving

https://www.phoronix.com/news/Linux-Extmem
1•speckx•26m ago•0 comments

Huang concedes computers with Nvidia chips smuggled into China

https://www.rte.ie/news/us/2026/1203/1601519-nvidia-congress/
4•austinallegro•27m ago•0 comments

Executive Orders by US President

https://www.kadoa.com/potus/insights/executive-orders
1•hubraumhugo•28m ago•0 comments

Show HN: Running a 27B LLM with 176K context on a single RTX 4090

https://github.com/spk-c/ninfer-all-rtx4090
1•slpdev•28m ago•0 comments

Next.js now has experimental native Go support

https://nextjs.org/blog/next-16-5
3•askadityapandey•28m ago•0 comments

A 30-year movie of Tycho's supernova remnant expanding

https://www.universetoday.com/articles/a-30-year-movie-of-tychos-supernovas-expanding-blast-wave
1•titusblair•29m ago•0 comments

Openware: Open-source firmware for the Miniware TS1C cordless soldering station

https://github.com/openware-project/openware-ts1c
1•titusblair•29m ago•0 comments

The Internet of Letterboxes: ZG-102ZM Review

https://shkspr.mobi/blog/2026/12/the-internet-of-letterboxes-zg-102zm-review/
2•titusblair•29m ago•0 comments