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/

OpenSplitDeck – a Steam Deck-like controller with custom hardware and firmware

https://github.com/tommybee456/OpenSplitDeck
1•gloxkiqcza•2m ago•0 comments

The Art of Persuasion in Cartography: Why Design Makes Maps Powerful

https://www.esri.com/about/newsroom/arcnews/the-art-of-persuasion-in-cartography-why-design-makes...
1•bryanrasmussen•3m ago•0 comments

Desmos Graph Calculator animation [video]

https://www.youtube.com/watch?v=LdGZ5eU-auM
2•CrankyBear•3m ago•0 comments

Netflix is rolling out a live voting feature

https://techcrunch.com/2026/01/20/netflix-is-rolling-out-a-live-voting-feature/
1•andsoitis•4m ago•0 comments

Show HN: Sharpie – Self-hostable AI prompt playground

https://github.com/heyrtl/sharpie
1•ratulrahman•5m ago•0 comments

Show HN: Describe hardware, get a buildable prototype

https://modo.is/discover
1•Beefin•5m ago•0 comments

How to Make Your Vision Survive Translation

https://holenventures.substack.com/p/how-to-make-your-vision-survive-translation
1•hholen•5m ago•0 comments

Local Agent Safety Framework

https://medium.com/@michael_14449/local-agent-safety-framework-d93817f00ce5
1•Scramblejams•6m ago•0 comments

Static Pricing Theory

https://varietyiq.com/blog/pricing
1•efavdb•9m ago•0 comments

Visualizing Delaunay Triangulation

https://ianthehenry.com/posts/delaunay/
1•aebtebeten•10m ago•0 comments

Tech workers ask their bosses to pressure Trump over ICE crackdowns

https://www.washingtonpost.com/technology/2026/01/20/tech-ice-letter-protest/
7•reaperducer•11m ago•0 comments

Show HN: Stitch-MCP, a universal MCP server for Google Stitch

https://github.com/Kargatharaakash/stitch-mcp
1•k_aakash•11m ago•0 comments

Claude Code Browser Automation on Bazzite

https://www.schwab.sh/blog/claude-code-browser-bazzite/
1•bschwab•12m ago•0 comments

LLVM Adopts "Human in the Loop" Policy for AI/Tool-Assisted Contributions

https://www.phoronix.com/news/LLVM-Human-In-The-Loop
1•pella•12m ago•0 comments

Georges Bataille: The Solar Anus (1927)

https://theanarchistlibrary.org/library/georges-bataille-the-solar-anus
2•CGMthrowaway•13m ago•0 comments

Show HN: Phaze – A Remote Desktop for Workstations

https://phaze.app/
1•boxerbk•13m ago•0 comments

Brutalist Web Design

https://brutalist-web.design
1•FigurativeVoid•18m ago•2 comments

Quango – A C89 CLI pathfinding puzzle game

https://github.com/gsekulski/quango
1•gsekulski•18m ago•0 comments

Intro to Genomics for Engineers

https://learngenomics.dev/
1•azhenley•19m ago•0 comments

NBomber v6.2.0 Is Out

https://nbomber.com/blog/2026/01/20/nbomber-v6.2.0/
1•antyadev•19m ago•1 comments

What does it take to ship Rust in safety-critical?

https://blog.rust-lang.org/2026/01/14/what-does-it-take-to-ship-rust-in-safety-critical/
2•birdculture•21m ago•0 comments

Created a Free Resume Builder

https://reachresume.com
2•nithinraphael96•22m ago•0 comments

OpenAI is rolling out age prediction

https://openai.com/index/our-approach-to-age-prediction/
12•pretext•22m ago•5 comments

The secret medieval tunnels that we still don't understand

https://weirdmedievalguys.substack.com/p/the-secret-medieval-tunnels-that
3•coloneltcb•24m ago•0 comments

Where I'm at with AI

https://paulosman.me/2026/01/18/where-im-at-with-ai/
1•todsacerdoti•25m ago•0 comments

The origami wheel that could explore lunar caves

https://techxplore.com/news/2025-12-origami-wheel-explore-lunar-caves.html
1•PaulHoule•25m ago•0 comments

Show HN: Sast+LLM Security Scanner that filters false positives and fixes issues

https://github.com/9M6/vulnsink
1•nullchan•25m ago•0 comments

With democracy in free fall, the media must (finally) wake up

https://margaretsullivan.substack.com/p/with-democracy-in-free-fall-the-media
3•treadump•25m ago•0 comments

Trump administration concedes DOGE team may have misused Social Security data

https://www.politico.com/news/2026/01/20/trump-musk-doge-social-security-00737245
16•mdhb•26m ago•4 comments

Things I Learned at the Claude Code NYC Meetup

https://benr.build/blog/claude-code-nyc-meetup
2•bisonbear•26m ago•0 comments