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

Comments

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

China-Australia relationship in 2026? This is how experts in China see it

https://theconversation.com/can-the-china-australia-relationship-stay-on-track-in-2026-this-is-ho...
1•defrost•3m ago•0 comments

Software Engineer Pay at McDonalds

https://www.levels.fyi/companies/mcdonalds/salaries/software-engineer
1•filetmignon•6m ago•0 comments

Pineapple Desktop (FreeDOS)

https://doscore.net/pineapple.html
1•kristopolous•7m ago•1 comments

Show HN: AgentWatch – A terminal dashboard for monitoring AI Agent costs

https://github.com/Tarunjit45/agentwatch
1•DarkX45•8m ago•0 comments

Harmonia – Hash function using Golden Ratio and Quasicrystal mathematics

https://github.com/faustodas-afk/harmonia-crypto
2•fadase•8m ago•1 comments

Found a rare moment when HN is restarting server

https://freeimage.host/i/screenshot-2026-01-12-112131.fvEKgee
1•celurian92•9m ago•0 comments

Show HN: Moving files without install on the host

https://uldl.sh
1•thedanielforum•10m ago•0 comments

Gh-Dash – GitHub PR Dashboard for Claude Code

https://github.com/jakozloski/claude-code-gh-dash
1•handfuloflight•30m ago•0 comments

Show HN: I kept forgetting Git worktree syntax, so I wrapped it

https://github.com/binbandit/workty
1•binbandit•35m ago•1 comments

Malaysia and Indonesia Block Elon Musk's Grok

https://www.cnbc.com/2026/01/12/malaysia-indonesia-block-elon-musks-grok-obscene-non-consensual-c...
3•rfarley04•49m ago•0 comments

The Workings of the Pentagon's UFO Reverse Engineering Program [video]

https://www.youtube.com/watch?v=u7g5Sn1DJF4
3•keepamovin•53m ago•0 comments

Semantic Rebase

https://www.peterjthomson.com/2026/01/semantic-rebase/
1•handfuloflight•54m ago•0 comments

XFCE Is Great

https://rubenerd.com/xfce-is-great/
23•mikece•54m ago•4 comments

Xibo open-source digital signage solution now works with Raspberry Pi 5

https://www.cnx-software.com/2026/01/12/xibo-open-source-digital-signage-solution-now-works-with-...
1•mikece•55m ago•0 comments

Everything you should know about PostgreSQL constraints

https://xata.io/blog/constraints-in-postgres
1•tudorg•56m ago•0 comments

The Definitive Guide to Claude Code

https://jpcaparas.medium.com/the-definitive-guide-to-claude-code-from-first-install-to-production...
2•handfuloflight•57m ago•0 comments

The beauty queen who caught Scotland's most prolific catfish

https://www.bbc.com/news/articles/ckgkr15el67o
1•ryan_j_naughton•1h ago•0 comments

Show HN: Remember Me AI (FULL RELEASE) – 40x cost reduction in AI memory systems

https://github.com/merchantmoh-debug/Remember-Me-AI
1•MohskiBroskiAI•1h ago•0 comments

Shopify and Google Announce Universal Commerce Protocol

https://www.shopify.com/ca/ucp
2•ianschmitz•1h ago•0 comments

A Short History of the Glass Mirror

https://www.cabinetmagazine.org/issues/14/mcelheny.php
1•o4c•1h ago•0 comments

Gen Z are arriving to college unable to even read a sentence

https://fortune.com/2026/01/09/gen-z-college-students-struggling-to-read-professors-forced-to-ret...
3•LostMyLogin•1h ago•2 comments

First Ever Image of a Multi-Planet System Around a Sun-Like Star

https://www.eso.org/public/news/eso2011/
2•thunderbong•1h ago•0 comments

Standard.site: The Publishing Gateway

https://stevedylan.dev/posts/standard-site-the-publishing-gateway/
1•stevedsimkins•1h ago•0 comments

Pixwit.ai is an AI-powered video creation platform

https://pixwit.ai
1•maysunyoung•1h ago•1 comments

Ask HN: Has anyone built payment flows inside AI voice calls?

2•wasiyc•1h ago•0 comments

Show HN: Karmic Tail – A calculator for the Destiny Matrix numerology system

https://karmictail.com/
2•hugh1st•1h ago•0 comments

The Pain of Real Linear Types in Rust (2017)

https://faultlore.com/blah/linear-rust/
1•xpe•1h ago•1 comments

Show HN: Pointa – Point-and-click annotations for AI coding agents (open source)

https://www.pointa.dev/
1•jberthom•1h ago•0 comments

Letting Claude Play Text Adventures

https://borretti.me/article/letting-claude-play-text-adventures
2•zdw•1h ago•0 comments

Show HN: Dutix – set default apps for file types and URL schemes on macOS

https://github.com/jackchuka/dutix
1•jackchuka•1h ago•0 comments