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/

How the Heck Does JPEG Work?

https://perthirtysix.com/how-the-heck-does-jpeg-work
1•safehuss•8m ago•0 comments

Show HN: Check technical fit for B2B prospects without questionnaires

https://tryscoped.com/demo
1•ininew•11m ago•0 comments

Coldcard's $38M (so far) exploit shakes faith in self-custody

https://www.coindesk.com/business/2026/07/31/coldcard-s-usd38-million-so-far-exploit-shakes-faith...
3•wslh•18m ago•1 comments

If technology got better, why did everything get worse?

https://www.sammystraus.com/#if-technology-got-better-why-did-everything-get-worse
2•sammy0910•18m ago•1 comments

Book sellers raise alarm over 'horrific' destruction of rare titles to feed AI

https://www.theguardian.com/technology/2026/aug/02/australian-book-sellers-alarm-destruction-rare...
3•billybuckwheat•19m ago•1 comments

Using Meta AI via WhatsApp for OpenCode

https://github.com/amita-seal/wa-metaai
1•amita2•20m ago•0 comments

AI's real threat to jobs isn't job loss, it's lower paychecks, new research says

https://www.businessinsider.com/ai-could-lower-workers-pay-job-market-impact-2026-7
2•theanonymousone•25m ago•0 comments

Ask HN: How are you using AI to learn?

4•mfalcon•26m ago•1 comments

We're 15-year-olds tired of switching study apps, so we built our own

https://reviscio.com/
1•Luka_Takki•27m ago•1 comments

Retired man plants trees on forgotten land, now it's Sao Paulo's largest park

https://timesofindia.indiatimes.com/world/rest-of-world/in-2003-a-retired-man-planted-trees-on-fo...
3•rmason•28m ago•0 comments

YC founder asks desperate job seekers to tattoo themselves for an interview

https://sfstandard.com/2026/07/30/lemonlime-tattoo-job-interview/
3•theanonymousone•28m ago•0 comments

Show HN: A Google Reader like discovery engine for long-form blogs

https://boredreading.com/
1•khet•29m ago•0 comments

India's monsoon rains in danger as UN chief warns planet is 'on fire'

https://www.theguardian.com/environment/2026/jul/31/india-monsoon-el-nino-hot-dry-conditions-mete...
2•howard941•29m ago•0 comments

FDA panel supports broadening access to peptides popular on the gray market

https://www.npr.org/2026/07/23/nx-s1-5903202/fda-peptides-restrictions
1•gmays•31m ago•0 comments

Show HN: Lumaris – AI biotech intelligence briefs (sample: EGFR resistance)

https://lumaris.nanocorp.app/reports/egfr-resistance-nsclc-2026
1•lumaris_intel•34m ago•0 comments

Drifting SpaceX rocket heading for collision with Moon

https://www.theguardian.com/science/2026/jul/31/spacex-rocket-moon-collision
1•qprofyeh•35m ago•0 comments

Cosmic String

https://en.wikipedia.org/wiki/Cosmic_string
1•whythismatters•35m ago•0 comments

Show HN: I made a music player inspired by late 90s peer-to-peer sharing

https://jdanwire.jordanscales.com/
1•jordanscales•42m ago•0 comments

GPT‑5.6 fuses frontier intelligence with frontier efficiency

https://openai.com/index/gpt-5-6-frontier-intelligence-efficiency/
1•882542F3884314B•43m ago•0 comments

Seedance 2.5

https://seed.bytedance.com/en/blog/one-take-creation-flexible-referencing-introducing-seedance-2-5
2•njaremko•45m ago•0 comments

PaperOS: A native Linux E Ink OS running on BOOX hardware

https://www.reddit.com/r/Onyx_Boox/comments/1vcdkmh/paperos_a_native_linux_e_ink_os_now_running_on/
2•carlosjobim•46m ago•0 comments

Rescue Boat Crews Show Signs of Brain Injuries, but Coast Guard Isn't Looking

https://www.nytimes.com/2026/07/30/us/coast-guard-rescue-boat-surfmen-brain-injury.html
1•bookofjoe•49m ago•2 comments

Let's See Paul Allen's SIMD CSV Parser

http://chunkofcoal.com/posts/simd-csv/
1•mfiguiere•50m ago•0 comments

Soft-deprecating chrono and chrono-tz

https://github.com/chronotope/chrono/issues/1768
2•Paul-E•51m ago•0 comments

Diátaxis

https://diataxis.fr/
39•ryanseys•57m ago•7 comments

Show HN: Search Statistics Like an Absolute Psychopath

https://number.weyland.enterprises/?q=65535
1•hronecviktor•57m ago•0 comments

Ask HN: Best Blogging Platform?

3•asxndu•58m ago•3 comments

Pantograph

https://github.com/jeprinz/pantograph/blob/main/README.md
4•sargstuff•1h ago•0 comments

Uber SubmitQueue: a high-performance speculative merge queue

https://github.com/uber/submitqueue/
1•handfuloflight•1h ago•0 comments

Ads in Software Are Like Stickers on Laptops

https://daringfireball.net/2026/07/ads_in_software_are_like_stickers_on_laptops
2•naves•1h ago•2 comments