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•7mo ago

Comments

bastawhiz•7mo ago
Is this a problem that people actually have?
xeromal•7mo ago
Fun side project man!
primitivesuave•7mo 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•7mo 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•7mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•7mo 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•7mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

I tried 'blood cleaning', the latest wellness fad

https://www.thetimes.com/life-style/health-fitness/article/would-you-get-your-blood-cleaned-of-to...
1•janandonly•2m ago•0 comments

Show HN: Vibe Code WordPress Plugins

https://steem.dev/
1•fasthightimess•4m ago•0 comments

China's exports top expectations on strong sales to non-US markets

https://www.reuters.com/world/asia-pacific/chinas-november-exports-top-expectations-imports-under...
1•reqo•5m ago•0 comments

I fired myself and made Gemini 3 the CEO of my dying startup

https://www.indiehackers.com/post/i-fired-myself-and-made-gemini-3-0-the-ceo-of-my-dying-startup-...
2•sklinkert•6m ago•1 comments

Zono: World Clock Time Zone

https://apps.apple.com/us/app/zono-world-clock-time-zone/id6755850724?mt=12
1•mraduldeodhiya•6m ago•1 comments

Galileo (Operating System)

https://en.wikipedia.org/wiki/Galileo_(operating_system)
1•robin_reala•6m ago•0 comments

Introduction

2•just-a-test•11m ago•0 comments

12 Days of Shell

https://12days.cmdchallenge.com
11•zoidb•18m ago•1 comments

CLI coding agents browsing ncdu/gdu directly instead of parsing JSON

2•shou_arisaka•18m ago•0 comments

Lost Vegas: inside America's most flailing destination city

https://slate.com/business/2025/11/las-vegas-travel-sphere-hotel-donald-trump.html
2•ilamont•19m ago•0 comments

State of Elixir 2025 – Community Survey Results

https://elixir-hub.com/surveys/2025
1•kamilap•19m ago•0 comments

Procurement execs often don't understand the value of good design, experts say

https://fortune.com/2025/12/08/procurement-execs-often-dont-understand-the-value-of-good-design-e...
2•Brajeshwar•26m ago•0 comments

Why Leftover Pizza Might Be Healthier

https://www.scientificamerican.com/video/why-leftover-pizza-is-actually-healthier-the-science-of-...
4•Brajeshwar•28m ago•0 comments

Show HN: Sensii – League of Legends AI Coach

https://sensii.gg/
2•FreeFrosty•30m ago•1 comments

Deaths and injuries are linked to faulty Abbott glucose monitors

https://www.npr.org/2025/12/06/g-s1-101082/abbott-glucose-monitor-deaths-recall-freestyle-libre
2•Brajeshwar•31m ago•0 comments

India weighs greater phone-location surveillance; Apple, Google, Samsung protest

https://www.reuters.com/sustainability/boards-policy-regulation/india-weighs-greater-phone-locati...
1•tosh•32m ago•0 comments

Tap Detection on Arbitrary Shapes with Compose

https://www.romainguy.dev/posts/2025/arbitrary-shape-tap-detection/
1•ibobev•34m ago•0 comments

Collection of Dark Patterns and Unethical Design

https://hallofshame.design/collection/
2•thm•36m ago•0 comments

Commoning open-source versus growth-hacking open-source

https://garagehq.deuxfleurs.fr/blog/2025-commoning-opensource/
2•todsacerdoti•41m ago•0 comments

AI Art Is Weird, Sad, and Ugly. Let's Not Pretend Otherwise

https://jacobin.com/2025/12/ai-slop-art-aesthetics-technology-capital/
3•thunderbong•42m ago•0 comments

Non-Obvious Things I Learned About GEPA

https://www.elicited.blog/posts/non-obvious-things-about-gepa/
1•justanotheratom•43m ago•1 comments

Tensor 1.5 matches Opus 4.5 94% cheaper and 20x faster

https://movementlabs.ai
1•movementlabsAI•43m ago•0 comments

Einstein: NewtonOS running on other operating systems

https://github.com/pguyot/Einstein
10•fanf2•49m ago•1 comments

2B R 0 2B

https://www.gutenberg.org/files/21279/21279-h/21279-h.htm
2•memalign•51m ago•0 comments

Flock license plate reader recorded its own theft, suspect in custody

https://www.fox35orlando.com/news/mount-dora-police-flock-license-plate-reader-theft-recorded-sus...
1•gscott•54m ago•0 comments

Spirograph style Lego drawing machine

https://jkbrickworks.com/simple-drawing-machine/
1•ensocode•54m ago•0 comments

Netrw.vim Repository Archived

https://github.com/saccarosium/netrw.vim
1•dzogchen•1h ago•0 comments

Couples rate honesty/trust/sex/money 1-10 → AI coach closes every gap

https://apps.apple.com/us/app/bondbeyond-relationship-care/id6443636330
1•Developodroid•1h ago•0 comments

Why IBM's CEO doesn't think current AI tech can get to AGI

https://www.theverge.com/podcast/829868/ibm-arvind-krishna-watson-llms-ai-bubble-quantum-computing
1•donutloop•1h ago•0 comments

One Shot Prompt from Database Schema

https://hub.harvis.io/
1•putna•1h ago•2 comments