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•10mo 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•10mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Sen. Wyden Warns of Mass Surveillance Amid Pentagon's Fight with Anthropic

https://gizmodo.com/sen-wyden-warns-of-mass-surveillance-amid-pentagons-fight-with-anthropic-2000...
1•WarOnPrivacy•27s ago•0 comments

Bluesky adds (broken) age verification

https://bsky.app
1•neogodless•30s ago•0 comments

Show HN: Webact – token-efficient browser control for AI agents (GitHub)

https://github.com/kilospark/webact
1•kxbnb•2m ago•0 comments

In startups, "I assumed" is the most expensive sentence you can say [video]

https://www.tiktok.com/@taxhero_ai/video/7613137316227353887?is_from_webapp=1&sender_device=pc
1•salleisha•2m ago•1 comments

Ask HN: Why don't MacBooks have Cellular Modems yet?

1•avonmach•3m ago•1 comments

Show HN: Proofd – Free AI career risk score based on your tasks, not job title

https://www.proofd.ai
1•dixalex•4m ago•0 comments

Is Shopify Good for SEO in 2026?

https://www.techwrath.com/is-shopify-good-for-seo-2026/
1•techwrath11•6m ago•0 comments

EURO-3C Project to build a federated Telco-Edge-Cloud infrastructure

https://digital-strategy.ec.europa.eu/en/news/commission-announces-eu75-million-euro-3c-project-b...
1•_____k•6m ago•0 comments

Show HN: TypeShim – .NET WebAssembly Meets TypeScript

https://github.com/ArcadeMode/TypeShim
1•ArcadeMode•6m ago•0 comments

How to Choose the Right Shopify Development Agency in 2026

https://www.techwrath.com/how-to-choose-right-shopify-development-agency/
1•techwrath11•6m ago•0 comments

Neovim cookies for the pluginless – random nvim native tips

https://eduardofuncao.com/blog/neovim-cookies/
1•xGoivo•7m ago•1 comments

The Social Media Discoverability Problem

https://samranda.com/blog/social-media-discoverability/
1•performative•8m ago•0 comments

Millennium Challenge 2002: Persian Gulf War Game Exercise

https://en.wikipedia.org/wiki/Millennium_Challenge_2002
2•Jimmc414•8m ago•1 comments

Open-source community gets a Claude-sized gift

https://www.thedeepview.com/articles/open-source-community-gets-a-claude-sized-gift
1•CrankyBear•10m ago•0 comments

Turning 4,668 comments into AGENTS.md rules to automate Pydantic AI reviews

https://pydantic.dev/articles/scaling-open-source-with-ai
2•yoredana•11m ago•0 comments

I Use Neovim by the Way

https://stupid-ideas.com/blog/2026_03_02__nvim_setup.html
2•KuSpa•13m ago•0 comments

Scripting on the JVM with Java, Scala, and Kotlin

https://mill-build.org/blog/19-scripting-on-the-jvm.html
2•PaulHoule•13m ago•0 comments

Show HN: Validatedata 0.3.0 – lightweight inline data validation for Python

https://pypi.org/project/validatedata/
1•EdwardK1•13m ago•0 comments

OpenWRT 25.12.0 Released

https://openwrt.org/releases/25.12/notes-25.12.0
3•voxadam•14m ago•1 comments

Incident postmortem in the age of AI agents

https://blog.firetiger.com/postmortem-on-the-march-1-2026-ingest-incident/
1•achille-roussel•14m ago•0 comments

CIA Station Hit in Drone Attack

https://www.washingtonpost.com/national-security/2026/03/03/cia-saudi-arabia-drone-attack-iran/
7•jbegley•14m ago•2 comments

Chat at your own risk Data brokers are selling deeply personal bot transcripts

https://www.theregister.com/2026/03/03/chatbot_data_harvesting_personal_info/
2•jjgreen•15m ago•1 comments

Trae Stephens: I want to buy Wired

https://twitter.com/i/status/2028824764656283997
1•mudil•18m ago•0 comments

Show HN: I build a free topical authority map generator for blog

https://kitful.ai/write-tools/topical-map-generator
1•eashish93•19m ago•0 comments

Show HN: Headless Obsidian Sync Client

https://github.com/alexjbarnes/vault-sync
1•recouptreadmill•20m ago•0 comments

Show HN: VibeDiff – Blocks Claude Code from shipping breaking changes

https://github.com/SallahBoussettah/vibe-diff
1•Boussettah•20m ago•0 comments

Buckle Up for Bumpier Skies

https://www.newyorker.com/projects/interactive/2026/20260226-bilger-turbulence-header-prod/202602...
1•rbanffy•22m ago•0 comments

How To Put 30 Languages Into 1.1MB – hypher, a fast hyphenation library for Rust

https://laurmaedje.github.io/posts/hypher/
2•zdw•22m ago•0 comments

Prediction markets on Deutsche Bahn departure delays

https://bahn.bet
2•dancric•23m ago•0 comments

AI causing programmers to work longer hours fixing bugs

https://www.scientificamerican.com/article/why-developers-using-ai-are-working-longer-hours/
5•timoth3y•24m ago•1 comments