frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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 World Became a Casino

https://podcasts.apple.com/us/podcast/how-the-world-became-a-casino-with-natasha-sch%C3%BCll/id17...
1•gmays•50s ago•0 comments

A defunct email service as a template for campus AI

https://nathanschneider.info/2026/05/a-defunct-email-service-as-a-template-for-campus-ai/
1•ntnsndr•4m ago•0 comments

Why should a Trace-ID be 128 bits?

https://newsletter.signoz.io/p/why-should-a-trace-id-be-128-bits
1•pranay01•5m ago•0 comments

Dmitry Senin - I escaped Vladimir Putin in the belly of a dead cow

https://www.telegraph.co.uk/world-news/2026/05/14/dmitry-senin-russia-fsb-escaped-putin-in-dead-cow/
1•canucker2016•9m ago•0 comments

reCAPTCHA Mobile Verification Is Bringing the Play Integrity API to Desktops

https://discuss.grapheneos.org/d/35428-recaptcha-mobile-verification-is-bringing-the-play-integri...
2•Cider9986•10m ago•0 comments

Ask HN: What is shared across participants within "AI-native" environments?

1•juun_roh•13m ago•0 comments

Wide-Band Subharmonic Modeling

https://queuesevenm.wordpress.com/2026/05/14/wide-band-subharmonic-modeling/
1•q7m•19m ago•0 comments

Browser HTTP Leak Test

https://raw.githubusercontent.com/cure53/HTTPLeaks/main/leak.html
1•1vuio0pswjnm7•20m ago•0 comments

What if websites were callable like APIs?

https://github.com/weekend-project-space/openwalk
2•zhugeyangyang•20m ago•1 comments

We're Building Neal Stephenson's Primer

https://github.com/hherb/primer
1•hherb•23m ago•1 comments

Mullvad exit IPs are surprisingly identifying

https://tmctmt.com/posts/mullvad-exit-ips-as-a-fingerprinting-vector/
8•RGBCube•26m ago•0 comments

Explore PPP Loans on an interactive map

https://www.ppploanmap.com/
2•zarie•27m ago•0 comments

Laid-off Oracle workers tried to negotiate better severance. Oracle said no

https://techcrunch.com/2026/05/08/laid-off-oracle-workers-tried-to-negotiate-better-severance-ora...
1•dskrvk•27m ago•0 comments

Switch to Codex

https://chatgpt.com/codex/switch-to-codex/
5•dragonsenseiguy•31m ago•1 comments

AI co-mathematician: Accelerating mathematicians with agentic AI

https://arxiv.org/abs/2605.06651
1•aoki•39m ago•0 comments

The Efficiency Moat: Why China Is Beating the U.S. on AI and Everything Else

https://www.thebignewsletter.com/p/the-efficiency-moat-why-china-is
4•connor11528•45m ago•0 comments

AI music generator so YouTubers never get copyright strikes

https://dmitrithegamer.github.io/soundcraft/
1•soundcraftai•50m ago•0 comments

LLMs can't read PDFs in 2026?

https://musings-mr.net/post/where-state-of-the-art-fails
2•mrkiouak•52m ago•1 comments

WordPress Lost 19% of the Internet to AI [video]

https://www.youtube.com/watch?v=0tFRdZWmGdc
1•mgh2•56m ago•0 comments

Agentic Search Models

https://softwaredoug.com/blog/2026/05/11/the-new-agentic-search-models.html
1•gmays•57m ago•0 comments

Gargoyle, a Decade Later

https://lospino.so/blog/gargoyle-a-decade-later/
1•jalospinoso•58m ago•0 comments

Big Shot On The East Coast: The History of the Zoo York Mixtape

https://daily.redbullmusicacademy.com/2013/07/zoo-york-mixtape-feature/
1•marysminefnuf•59m ago•0 comments

Monero's Biggest Privacy Upgrade Is Almost Here: Justin Berman on FCMP Stressnet

https://youtube.com/M2rbsjTSFt8?t=52
1•Cider9986•1h ago•1 comments

GPT convinced me there was a bug in my code before a freeze

https://www.droppedasbaby.com/posts/2602-02/
1•offbyone42•1h ago•0 comments

I resurrected the web from the past and it got weird

https://slopcities.com/
3•ZenBlender•1h ago•1 comments

Bumble Is Removing the Swipe Feature, Will Use AI in New Launch

https://www.eonline.com/news/1431973/bumble-removing-swipe-feature-will-use-ai-in-new-launch
1•mgh2•1h ago•0 comments

Find vendors used by any company

https://sub-processors.com/subprocessor/elasticsearch
2•chatmasta•1h ago•0 comments

Ask HN: When will you be concerned on layoffs?

4•piratesAndSons•1h ago•0 comments

Restartable Sequences, TCMalloc, and Hyrum's Law

https://lwn.net/Articles/1070072/
1•signa11•1h ago•0 comments

Caltrans Explores High-Speed Bus Network to Complement Rail System

https://www.kqed.org/news/12083467/caltrans-explores-high-speed-buses-as-alternative-to-rail-in-c...
3•rawgabbit•1h ago•1 comments