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

Comments

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

AI helps break the cost barrier to COBOL modernization

https://claude.com/blog/how-ai-helps-break-cost-barrier-cobol-modernization
1•nsoonhui•2m ago•0 comments

Browser Use vs. Claude Computer Use

https://techstackups.com/comparisons/browser-use-vs-claude-computer-use/
1•sixhobbits•3m ago•0 comments

Show HN: PulseWatch – AI website monitor with plain-language summaries

https://pulsewatch.watch
1•KaracaTR•5m ago•0 comments

Microsoft bans the word "Microslop" on its Discord, then locks the server

https://www.windowslatest.com/2026/03/02/microsoft-gets-tired-of-microslop-bans-the-word-on-its-d...
2•robtherobber•7m ago•0 comments

KlongPy

https://github.com/briangu/klongpy
1•tosh•8m ago•0 comments

Jolla phone – a full-stack European alternative

https://commerce.jolla.com/products/jolla-phone-sept-26
1•spinningslate•9m ago•1 comments

Show HN: Commitdog – Git on steroids CLI (pure Go, ~3MB binary)

https://aysdog.com/commitdog
3•anirbanfaith•14m ago•1 comments

Submission Deadline for 12th International Workshop on Plan 9 ends March 9 2026

http://iwp9.org/
2•nakedneuron•14m ago•0 comments

Vilayat-E Faqih

https://en.wikipedia.org/wiki/Guardianship_of_the_Islamic_Jurist
1•simonebrunozzi•14m ago•0 comments

Tailwind CSS UI Components

https://apexcodestudios.com
1•TheMashaBrand•16m ago•0 comments

Show HN: C7 – Pipe up-to-date library docs into any LLM from the terminal

https://github.com/VedanthB/context7-cli
1•vedanthbora•17m ago•0 comments

Show HN: DailyWatch – Free video discovery across 8 regions

https://dailywatch.video/
1•ibrahimtxyz•18m ago•0 comments

Flowly – Make your Mac mouse scroll like a trackpad

https://flowlyapp.dev/
2•simonij•19m ago•2 comments

Show HN: Swalpa – Spoken Kannada learning platform built with Antigravity

https://swalpa.org/games/
2•maurys•25m ago•2 comments

AWS data center hit by Iran

https://www.reuters.com/world/middle-east/amazons-cloud-unit-reports-fire-after-objects-hit-uae-d...
10•wayneshng•27m ago•1 comments

Why Tokyo's Metro Is Profitable and New York City's Isn't [video]

https://www.youtube.com/watch?v=HdJwAUdvlik
1•simonebrunozzi•28m ago•0 comments

Edwin Smith Papyrus

https://en.wikipedia.org/wiki/Edwin_Smith_Papyrus
2•Antibabelic•30m ago•0 comments

The world is running out of silver – and AI is accelerating the squeeze

https://www.mining.com/sponsored-content/the-world-is-running-out-of-silver-and-ai-is-acceleratin...
1•voice_of_genre•31m ago•1 comments

Show HN: Pure Rust IFC/BIM Viewer in the Browser via WebAssembly

https://bimifc.de/?file=bayarena_lighting.ifc
1•holg•33m ago•0 comments

Tangled: Our €3,8M seed round

https://blog.tangled.org/seed
1•thombles•35m ago•1 comments

Empirical evidence for consciousness without access

https://www.sciencedirect.com/science/article/pii/S0010027723001634
1•paraschopra•36m ago•0 comments

Show HN: Open-source expense and budget tracker with SQL API for AI agents

https://github.com/kirill-markin/expense-budget-tracker
2•MarkinK•36m ago•0 comments

Show HN: A Software-Defined USB PD Charger (ESP32, FPGA, Open Source Hardware)

https://www.crowdsupply.com/candysign/hummingkit
5•SDCforAll•37m ago•0 comments

Introducing-Perplexity-Computer

https://www.perplexity.ai/hub/blog/introducing-perplexity-computer
2•Tangokat•38m ago•0 comments

Ganak: The making of a high-performance model counter

https://www.msoos.org/2026/03/ganak-the-making-of-a-versatile-high-performance-model-counter/
2•zero_k•39m ago•1 comments

The Fall of Samakin Altwalker and the Dark Side of OpenAI

https://greggbayesbrown.substack.com/p/the-fall-of-samakin-altwalker-and
1•superfluous_g•40m ago•0 comments

Rolv.ai: Universal sparse compute primitive, back end-agnostic reproducibility

https://rolv.ai
1•heggenhougen•41m ago•0 comments

John Carmack – a tech god of tech illiterates

https://boards.4chan.org/g/thread/108271937/the-gospel-of-the-axe-deconstructing-the-divine
1•voice_of_genre•42m ago•0 comments

Benzene changed chemistry forever – with Judy Wu [video]

https://www.youtube.com/watch?v=0kYMUFzylOs
1•mariuz•43m ago•0 comments

I Didn't Like App Launchers for Arch Linux, So I Wrote My Own in Rust

https://rafaelzimmermann.com/posts/app-launcher-rust.html
4•auxtmp•46m ago•0 comments