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/

DefaultModel: Hosting only one model, the best open source model

https://defaultmodel.ai
1•yoeven•1m ago•1 comments

Cove.town – an experiment in AT Protocol self-hosting

https://cove.town/
1•joladev•1m ago•0 comments

US Government backs OpenAI in New York Times copyright case

https://www.reuters.com/legal/litigation/us-government-backs-openai-new-york-times-copyright-case...
1•thm•1m ago•0 comments

Show HN: POWBlock proof-of-work microservice for any server

https://github.com/8Protons/POWBlock
1•BlueRoguesDevel•3m ago•0 comments

The attack is a sleeping sentence your logs cannot see

https://github.com/samvallad33/vestige
1•entity002•3m ago•0 comments

SquidGPT

https://twitter.com/spakhm/status/2094820316035862928
1•tosh•4m ago•0 comments

SEO vs. AEO vs. Geo vs. AIO: Same Work, Different Acronyms

https://canonry.ai/blog/seo-vs-aeo-vs-geo-vs-aio
1•arberx•4m ago•0 comments

Working with PM

https://twitter.com/spakhm/status/2095186002323136688
1•tosh•5m ago•0 comments

Physics professor develops anomalous translocation machine [video]

https://www.youtube.com/watch?v=onXiPWQsGPM
1•hmokiguess•5m ago•0 comments

Show HN: Skatanica – Browse and share skate clips by location

https://skatanica.com/runs
1•ralusek•5m ago•0 comments

Tasking RADARSAT

https://tech.marksblogg.com/canada-radarsat.html
1•marklit•5m ago•0 comments

How to debloat your Xiaomi 15 Ultra without root access

https://trackerninja.codeberg.page/post/how-to-debloat-your-xiaomi-15-ultra-without-rooting-and-c...
2•spacedrone808•6m ago•1 comments

Study Math with Kusama

https://medium.com/counterarts/study-math-with-kusama-6008df7c2abd
1•cadeos•6m ago•0 comments

Jason on X: "Major trend in hiring: people are asking to be part-time

https://twitter.com/Jason/status/2095160934528417854
1•bilsbie•6m ago•1 comments

Eisenstein Integers

https://en.wikipedia.org/wiki/Eisenstein_integer
1•ogogmad•6m ago•0 comments

The Rise of HOMs: Harmful Open Models

https://x.com/compose/articles/edit/2094867623125073920
2•FrancescoMassa•7m ago•0 comments

Not a Joke

https://taoofmac.com/space/blog/2026/09/01/2130
1•rcarmo•8m ago•0 comments

The Singularity Is Not What It Seems

https://www.theatlantic.com/technology/2026/09/ai-future-reckoning-singularity/688487/
1•almostdeadguy•9m ago•0 comments

Pangram Has Emerged as the Gold Standard of AI Detection

https://www.wired.com/story/pangram-has-emerged-as-the-gold-standard-of-ai-detection/
1•Brajeshwar•10m ago•0 comments

OpenAI's Astra Model

https://twitter.com/rasbt/status/2095141254958858496
3•pretext•11m ago•0 comments

Show HN: Ava – a coding-agent in C++23 with durable, replayable sessions

https://github.com/SmartAI/ava
1•leomicv•13m ago•1 comments

The race to engineer new knobs for the human brain

https://www.neuroai.science/p/the-race-to-engineer-new-knobs-for
2•pminimax•13m ago•0 comments

Personal Development Improves Self-Awareness

https://medium.com/@flaviopilotodasilva/how-personal-development-improves-self-awareness-1d4b5731...
1•flaviopilotodas•14m ago•0 comments

Country Logic

https://github.com/matheus-git/country-logic
1•triska•15m ago•0 comments

Intellectual AI Bubble

https://xendo.bearblog.dev/intellectual-ai-bubble/
2•xendo•16m ago•0 comments

What kind of tools do you use for manage job search and apply flow?

4•bestjobfinder•17m ago•1 comments

Show HN: Paste a Markdown file and let anyone mark it up, no accounts

https://markdown.link/
1•jordanf•18m ago•2 comments

Weight loss and diabetes treatment helps burn fat while keeping muscle (in mice)

https://news.berkeley.edu/2026/08/21/a-promising-new-weight-loss-and-diabetes-treatment-helps-bur...
3•apparent•18m ago•1 comments

Gia: Natural Language Search Compiler

https://usegia.com/intro
1•Bluestein•18m ago•0 comments

A16Z Says You Love Social Media, Enshittification Isn't Real

https://www.404media.co/a16z-says-you-actually-love-social-media-enshittification-isnt-real/
4•cdrnsf•19m ago•1 comments