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•9mo 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/

Microsoft explores bringing top menu bar to Win 11 with new PowerToys feature

https://www.windowscentral.com/microsoft/windows-11/microsoft-explores-bringing-linux-like-top-me...
1•Tomte•1m ago•0 comments

ProToken: Token-Level Attribution for Federated Large Language Models

https://arxiv.org/abs/2601.19672
1•onurkanbkrc•1m ago•0 comments

Apache Kafka without the hassle, K8s native, Iceberg and SQL

https://github.com/KafScale/platform
1•2pk03•6m ago•0 comments

Amazon Found 'High Volume' of Child Sex Abuse Material in AI Training Data

https://www.bloomberg.com/news/features/2026-01-29/amazon-found-child-sex-abuse-in-ai-training-data
1•nonfamous•10m ago•0 comments

Apple acquires Israeli audio AI startup Q.ai

https://www.reuters.com/business/apple-acquires-audio-ai-startup-qai-2026-01-29/
1•porridgeraisin•13m ago•0 comments

Trump sues IRS and US treasury for $10B over leak of tax returns

https://www.theguardian.com/us-news/2026/jan/29/trump-sues-tax-return-leak
2•mellisacodes•13m ago•0 comments

Show HN: We analyzed AI tool launches – here's why GTM breaks

1•yasu_c•14m ago•0 comments

Taiwan's GDP in 2025 Grew at Fastest Pace Since 2010 (+8.63%)

https://www.wsj.com/economy/taiwans-economy-grew-at-fastest-pace-in-15-years-fcf4f0d2
1•giuliomagnifico•14m ago•0 comments

Show HN: TagCompanion – Point-and-Click Google Tag Manager Implementation

https://www.tagcompanion.com/
1•ybor•17m ago•1 comments

Beyond the click: How brands can influence visibility in AI-generated answers

https://thenextweb.com/news/beyond-the-click-influence-visibility
2•voiquh•17m ago•0 comments

Show HN: Clear to Spend – a simple YES/NO helper for spending decisions

https://clear-to-spend.vercel.app/
1•Nanoto•20m ago•1 comments

Show HN: A Protocol for Inducing Metacognition in LLMs and Falsifiable Model

https://zenodo.org/records/18346699
1•Keeper123•20m ago•0 comments

HN Highlights

https://news.ycombinator.com/highlights
1•sgt•23m ago•0 comments

Show HN: Our GitHub org profile in ASCII art

https://github.com/taskade
1•johnxie•24m ago•1 comments

A Market Saturated with Binance Scams: How Its Shaping Current Crypto Landscape

https://twitter.com/i/status/2017142739767263252
11•salkahfi•29m ago•0 comments

Grok Imagine API

https://x.ai/news/grok-imagine-api
2•vincent_s•29m ago•0 comments

devenv: Fast, Declarative, Reproducible, and Composable Developer Environments

https://devenv.sh/
6•tosh•30m ago•0 comments

Another user's pCloud setup is visible in my pcloud drive

https://old.reddit.com/r/pcloud/comments/1qqrcza/another_users_pcloud_setup_is_visible_in_my/
9•lukax•31m ago•1 comments

Show HN: Flywheel – The Zero-Flicker Terminal Compositor for Agentic CLIs

https://github.com/ccheshirecat/flywheel
1•ccheshirecat•33m ago•1 comments

Hours without lungs: artificial organ kept man alive until transplant

https://www.nature.com/articles/d41586-026-00239-y
6•qnleigh•34m ago•0 comments

Show HN: SoVideo – Free AI video generator using Sora 2

https://sovideo.ai
1•leegrayson•34m ago•0 comments

Show HN: Two AIs compete to build the best browser game from scratch

https://self-evolving.dev/
1•yugahashi•35m ago•0 comments

GOG: Linux "the next major frontier" for gaming as it works on a native client

https://www.xda-developers.com/gog-calls-linux-the-next-major-frontier-for-gaming-as-it-works-on-...
13•franczesko•38m ago•1 comments

The Rotten Science Behind the MSG Scare

https://www.sciencehistory.org/stories/magazine/the-rotten-science-behind-the-msg-scare/
2•thunderbong•41m ago•0 comments

Show HN: An AI tutor focused on reasoning, not just answer

https://dechecker.ai/ai-homework-helper
2•passioner•42m ago•0 comments

Show HN: Velovol – Self-hosted development environment distribution

https://www.velovol.com
3•tlyplane•46m ago•0 comments

Why I'm ignoring pretty much all new Python packaging tools

https://utcc.utoronto.ca/~cks/space/blog/python/PythonPackageToolsMyIgnoring
8•ingve•51m ago•0 comments

OpenPuya

https://py32.org/en/
2•tosh•51m ago•0 comments

Apple can't secure enough chips as iPhone demand surges, memory prices rise

https://www.cnbc.com/2026/01/29/apple-iphone-soc-memory-tsmc.html
4•1659447091•57m ago•0 comments

Apple Reports Record-Setting 1Q 2026 Results: $42.1B Profit on $143.8B Revenue

https://www.macrumors.com/2026/01/29/apple-1q-2026-earnings/
3•tosh•58m ago•0 comments